Is there a keyboard shortcut for commenting multiple lines in Matlab editor

Is there a shortcut for commenting multiple lines in matlab. If not, can I create it?

+5
source share
2 answers

Comment out the shortcut CTRL + R on Windows and CTRL + / on Unix systems (not sure about OS X). To comment on multiple lines, you need to select them with the mouse or SHIFT .

In any case, this can be configured using "Settings" → "Keyboard" → "Shortcuts".

+12
source

in the octave Ctrl-R for comments and Ctrl-Shift-R for discarding comments

+1
source

All Articles