#10753
Yutaka Emura
Keymaster

Hello,

How about a macro like this:

[JavaScript]

if( document.selection.IsEmpty ){
editor.ExecuteCommandByID(4154);
}
editor.ExecuteCommandByID(4371);

This macro will comment out the selection if the selections exists, or comment the current line if the selection does not exist.

Thanks!