• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
yuzaipiaofei
博客园    首页    新随笔    联系   管理    订阅  订阅

给Source Insight添加块注释宏、全部选择宏

给Source Insight添加块注释宏、全部选择宏

作者: 奔跑 日期: 2011 年 07 月 19 日609 views 发表评论 (0) 查看评论

给SourceInsight添加 “select all”, “CommentBlock”, “UncommentBlock”  功能
步骤如下:

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可修改注释格式

posted @ 2012-03-22 10:41  yuzaipiaofei  阅读(584)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3