Keyboard shortcut for commenting/uncommenting code


#1

Hi everybody,

Is there a keyboard shortcut in the text editor to quickly comment/uncomment a block of code?

Thank you


#2

Yes, there is. Press Ctrl + / (slash) to comment/uncomment.
You can also make a selection to comment out multiple lines (will add // to every line you include, not the /*code*/ thing).


#3

Hi, that’s great! Thank you very much for the prompt reply.


#4

Doesn’t work on mac :cry:


#5

It’s command + slash on Mac.