Source Insight中快速添加注释
来源:互联网 发布:eclipse格式化js代码 编辑:程序博客网 时间:2024/05/19 07:07
使用说明:可以实现在sourceinsight中快速添加修改注释。 1. Project->Open Project... 打开Base工程(该工程一般在我的文档//Source Insight//Projects//Base中); 2. 搜索utils.em 里的字串"chenjsa" 改成自己的姓名 3. Project->Add and Remove Project Files... 加入宏文件(即utils.em); 4. Options->Menu Assignments 打开Menu Assignments窗口, 在Command中输入Macro, 选中要使用的宏(SingleLineComment ,MultiLineCommentHeader,MultiLineCommentEnd), 添加到合适的菜单中. macro SingleLineComment(){ szMyName = "gs06116" // Get a handle to the current file buffer and the name // and location of the current symbol where the cursor is. hbuf = GetCurrentBuf() ln = GetBufLnCur(hbuf) // Get current time szTime = GetSysTime(1) Hour = szTime.Hour Minute = szTime.Minute Second = szTime.Second Day = szTime.Day Month = szTime.Month Year = szTime.Year if (Day < 10) szDay = "0@Day@" else szDay = Day //szMonth = NumToName(Month) if (Month < 10) szMonth = "0@Month@" else szMonth = Month szDescription = Ask("请输入修改原因") // begin assembling the title string //added by gs06116 InsBufLine(hbuf, ln, "//Added by @szMyName@ @Year@/@szMonth@/@szDay@ for @szDescription@ ") //InsBufLine(hbuf, ln+1, "/*@szDescription@ xmyanfa @Year@-@szMonth@-@szDay@*/")}macro MultiLineCommentHeader(){ szMyName = "gs06116" // Get a handle to the current file buffer and the name // and location of the current symbol where the cursor is. hbuf = GetCurrentBuf() ln = GetBufLnCur(hbuf) // Get current time szTime = GetSysTime(1) Hour = szTime.Hour Minute = szTime.Minute Second = szTime.Second Day = szTime.Day Month = szTime.Month Year = szTime.Year if (Day < 10) szDay = "0@Day@" else szDay = Day //szMonth = NumToName(Month) if (Month < 10) szMonth = "0@Month@" else szMonth = Month szDescription = Ask("请输入修改原因:") // begin assembling the title string //added by gs06116InsBufLine(hbuf, ln, "/*Begin:Added by @szMyName@ @Year@/@szMonth@/@szDay@ for @szDescription@ */")}macro MultiLineCommentEnd(){ szMyName = "gs06116" // Get a handle to the current file buffer and the name // and location of the current symbol where the cursor is. hbuf = GetCurrentBuf() ln = GetBufLnCur(hbuf) // Get current time szTime = GetSysTime(1) Hour = szTime.Hour Minute = szTime.Minute Second = szTime.Second Day = szTime.Day Month = szTime.Month Year = szTime.Year if (Day < 10) szDay = "0@Day@" else szDay = Day //szMonth = NumToName(Month) if (Month < 10) szMonth = "0@Month@" else szMonth = Month //InsBufLine(hbuf, ln + 1, "/*@szMyName@.xmyanfa @Year@-@szMonth@-@szDay@ end*/") //added by gs06116InsBufLine(hbuf, ln, "/*End:Added by @szMyName@ @Year@/@szMonth@/@szDay@ */")}macro DeSingleLineComment(){ szMyName = "gs06116" // Get a handle to the current file buffer and the name // and location of the current symbol where the cursor is. hbuf = GetCurrentBuf() ln = GetBufLnCur(hbuf) // Get current time szTime = GetSysTime(1) Hour = szTime.Hour Minute = szTime.Minute Second = szTime.Second Day = szTime.Day Month = szTime.Month Year = szTime.Year if (Day < 10) szDay = "0@Day@" else szDay = Day //szMonth = NumToName(Month) if (Month < 10) szMonth = "0@Month@" else szMonth = Month szDescription = Ask("请输入修改原因") // begin assembling the title string //added by gs06116 InsBufLine(hbuf, ln, "//Deleted by @szMyName@ @Year@/@szMonth@/@szDay@ for @szDescription@ ") //InsBufLine(hbuf, ln+1, "/*@szDescription@ xmyanfa @Year@-@szMonth@-@szDay@*/")}macro DeMultiLineCommentHeader(){ szMyName = "gs06116" // Get a handle to the current file buffer and the name // and location of the current symbol where the cursor is. hbuf = GetCurrentBuf() ln = GetBufLnCur(hbuf) // Get current time szTime = GetSysTime(1) Hour = szTime.Hour Minute = szTime.Minute Second = szTime.Second Day = szTime.Day Month = szTime.Month Year = szTime.Year if (Day < 10) szDay = "0@Day@" else szDay = Day //szMonth = NumToName(Month) if (Month < 10) szMonth = "0@Month@" else szMonth = Month szDescription = Ask("请输入修改原因:") // begin assembling the title string //added by gs06116InsBufLine(hbuf, ln, "/*Begin:Deleted by @szMyName@ @Year@/@szMonth@/@szDay@ for @szDescription@ */")}macro DeMultiLineCommentEnd(){ szMyName = "gs06116" // Get a handle to the current file buffer and the name // and location of the current symbol where the cursor is. hbuf = GetCurrentBuf() ln = GetBufLnCur(hbuf) // Get current time szTime = GetSysTime(1) Hour = szTime.Hour Minute = szTime.Minute Second = szTime.Second Day = szTime.Day Month = szTime.Month Year = szTime.Year if (Day < 10) szDay = "0@Day@" else szDay = Day //szMonth = NumToName(Month) if (Month < 10) szMonth = "0@Month@" else szMonth = Month //InsBufLine(hbuf, ln + 1, "/*@szMyName@.xmyanfa @Year@-@szMonth@-@szDay@ end*/") //added by gs06116InsBufLine(hbuf, ln, "/*End:Deleted by @szMyName@ @Year@/@szMonth@/@szDay@ */")}
- Source Insight中快速添加注释
- source insight 添加注释快捷方式
- Source Insight添加快键键注释
- 在source insight中添加自己的单行注释命令
- source insight 添加注释,添加环境变
- Source Insight 快速注释选中内容
- 给source insight添加doxygen注释风格
- source insight 宏 添加函数注释
- Source Insight 注释快捷键的宏添加
- Source Insight 自动添加的注释信息如何设置的
- 利用Source Insight宏语言脚本添加注释
- 给Source Insight添加块注释宏、全部选择宏
- 利用Source Insight宏语言脚本添加注释
- 利用Source Insight宏语言脚本添加注释
- Source Insight通过快捷按键添加多种代码注释
- source insight中添加.S文件
- source insight软件中添加.S文件
- source insight中添加.S文件
- Android开发资料大全
- Bootloader 原理篇之二 源码阅读 与 U-Boot 移植
- Hibernate中Criteria的完整用法
- php foreach用法和实例
- 因无法连接配置数据库导致无法访问SharePoint管理中心
- Source Insight中快速添加注释
- 进入csdn
- android系统服务启动分析-binder
- [Linux][2011-5-25]linux int 类型
- 委托控件的使用(Delegate Control)
- iphone开发中的一些小技巧
- 新手报道--规则与方圆
- 使用WF为SharePoint2010设计工作流
- JNI学习之步步深入三