I can able to select multiple lines using Esc+A. After this, what shortcut(s) should I use to comment/uncomment the selected lines?
How to comment multiple lines in nano at once
nano
nano
I can able to select multiple lines using Esc+A. After this, what shortcut(s) should I use to comment/uncomment the selected lines?
Best Answer
Esc3 will comment or uncomment the selected lines in the
nano
editor. The default comment character used is#
(valid in many scripting languages).The comment character may be modified by the
comment
option in your~/.nanorc
file. This is from the manual:See also the
nanorc(5)
manual on your system (man 5 nanorc
).