Comment/uncomment line(s) is easy in Emacs

您所在的位置:网站首页 wps表格自动排序函数 Comment/uncomment line(s) is easy in Emacs

Comment/uncomment line(s) is easy in Emacs

2022-12-31 17:32| 来源: 网络整理| 查看: 265

It's easy if you use evil-nerd-commenter because commenting/uncommenting line(s) is only pressing ",ci" in evil-mode.

You can also select text and press M-; to comment the lines in the region. If part of the line is not in the selected, the whole line will still be commented out. This saves your extra key pressing for moving cursor to the beginning of the first line or moving the cursor to the end of the last line.

The reason to make commenting efficient is that I need comment/uncomment code for debug purpose.

Some people say comment out the code is not a right way to debug. The right way is using debugger.

In some huge projects, debugger makes no sense for many reasons:

The debugger for that Domain Specific Language simply does not exist Bugs can be reproduced ONLY on production server where debugger is not installed Too much overhead to set up debugger


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3