How Do You Comment Multiple Lines in Linux?
Contents How Do You Comment Multiple Lines at Once? the Keyboard Shortcut to Comment Multiple in Windows Is Shift + Alt + A. in My Case, Ubuntu, the Shortcut...
How do you comment multiple lines at once?
The keyboard shortcut to comment multiple in Windows is shift + alt + A . In my case, Ubuntu, the shortcut is ctrl + shift + A . You can see all available keybindings on the official documentation. You will need to select the lines you want to comment first, then execute above shortcut, i.e. ⌘/ on osx Ctrl/ on Windows.
Must Read
How do you comment out a line in Linux?
Whenever you want to comment a line, put a # in an appropriate place in a file. Anything beginning after # and ending at the end of the line won’t get executed. This comments out the complete line. This comments out only the last part of the line starting at #.