Open Simran-B opened 5 years ago
@Simran-B shift + cmd + c toggles comments
from the keyboard shortcuts help Toggle comments Ctrl/Cmd + Shift + C
@baslr Thanks, works in Chrome. It's slightly buggy though: If you select a line of code as well as an already outcommented line and hit the shortcut keys, then both lines get //
prepended, which means the already outcommented line will then have four slashes.
@hkernbach Can you fix that?
@Simran-B how do you decide if you uncomment or comment? if all selected lines have // at the beginning -> remove //
otherwise add //
Well, I guess the first line could be used as kicker? If it's commented, then uncomment all selected lines and vice versa, but never add another //
if a line is already commented? On the other hand, one might want to uncomment one level and get the code back with lines still commented, although I would personally not do this but rather place a /*
somewhere and put the unused lines beneath.
@baslr , Toggle command is not working in Arc Browser
ilx via community slack:
a minor request (if possible): it would be nice if web query editor could (un)comment lines via shortcut (cmd+/ or something similar)