如何给Source Insight添加块注释的宏 等
2个回答
2016-09-15 · 知道合伙人数码行家
huanglenzhi
知道合伙人数码行家
向TA提问 私信TA
知道合伙人数码行家
采纳数:117538
获赞数:517184
长期从事计算机组装,维护,网络组建及管理。对计算机硬件、操作系统安装、典型网络设备具有详细认知。
向TA提问 私信TA
关注
展开全部
步骤如下:
1) 使用覆盖默认 utils.em 的方法导入宏 下载这个宏文件.
l 打开 “source insight”
l 打开 base project (菜单 project->open project,可以看到base project)
l 打开 “utils.em” 文件 (在右边的窗口中)用刚刚下载的utils.em文件的内容替代它.
2) 启用宏
l 菜单 “Options” -> “Key assignment”
l 在列表框中找到下面的宏:
Macro: CommentBlock
Macro: SelectAll
Macro: UncommentBlock
l 给这些宏分配按键
eg. “Ctrl+A” for “Select All”, “Ctrl+F11” for “CommentBlock” and “Shift+Ctrl+F11” for “UncommentBlock”
3) 试试看吧.
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).
在L392可修改注释格式
1) 使用覆盖默认 utils.em 的方法导入宏 下载这个宏文件.
l 打开 “source insight”
l 打开 base project (菜单 project->open project,可以看到base project)
l 打开 “utils.em” 文件 (在右边的窗口中)用刚刚下载的utils.em文件的内容替代它.
2) 启用宏
l 菜单 “Options” -> “Key assignment”
l 在列表框中找到下面的宏:
Macro: CommentBlock
Macro: SelectAll
Macro: UncommentBlock
l 给这些宏分配按键
eg. “Ctrl+A” for “Select All”, “Ctrl+F11” for “CommentBlock” and “Shift+Ctrl+F11” for “UncommentBlock”
3) 试试看吧.
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).
在L392可修改注释格式
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询