如何给Source Insight添加块注释的宏 等

如题所述

l Open “source insight”
l Open base project (Menu project->open project and you’ll find it)
l Open “utils.em” file (in the right floating window) and replace its content with the attached one.

2) Enable the macros
l Select Menu “Options” -> “Key assignment”
l Scroll down the left list box to find the macros:
Macro: CommentBlock
Macro: SelectAll
Macro: UncommentBlock
l Assign New keys for the macros
eg. “Ctrl+A” for “Select All”, “Ctrl+F11” for “CommentBlock” and “Shift+Ctrl+F11” for “UncommentBlock”

3) Try it.
Close the project and create a new file. Randomly enter something, press “Ctrl+A”, “Ctrl+F11”, “Ctrl+Shift+F11” to have a try.

By default, it will comment the block of lines with “//” at the beginning of each line, but if the file is a PERL file (.pl), it will use “#” instead. And you can change it for different file types by modifying the macro definition file (utils.em).
温馨提示:答案为网友推荐,仅供参考
相似回答