vs2008 注释宏
来源:互联网 发布:东风suv景逸x5 知乎 编辑:程序博客网 时间:2024/06/06 14:04
Sub AddHeadDesc()
'DESCRIPTION: 添加一个标准的头文件说明
DTE.ActiveDocument.Selection.StartOfDocument()
DefaultUserName = "XXX"
Dim FileName
FileName = DTE.ActiveDocument.Name
selection = DTE.ActiveDocument.Selection
selection.Text = "/*************************************************" + CStr(CrLf)
selection.Text = " Copyright (C), 2012-2022, xxxxxx. Co., Ltd." + CStr(CrLf)
selection.Text = selection.Text + "File name: " + FileName + CStr(CrLf)
selection.Text = selection.Text + "Author: " + DefaultUserName + CStr(CrLf)
selection.Text = selection.Text + "Version: v1.0" + CStr(CrLf)
selection.Text = selection.Text + "Date: " + CStr(Date.Today.Year) + "/" + CStr(Date.Today.Month) + "/" + CStr(Date.Today.Day) + CStr(CrLf)
selection.Text = selection.Text + "Description:" + CStr(CrLf) + CStr(CrLf)
selection.Text = selection.Text + "Others: " + CStr(CrLf)
selection.Text = selection.Text + "History: " + CStr(CrLf)
selection.Text = selection.Text + "1. Date: " + CStr(Lf)
selection.Text = selection.Text + " Author: " + CStr(Lf)
selection.Text = selection.Text + "Version: " + CStr(Lf)
selection.Text = selection.Text + "Modification:" + CStr(Lf)
selection.Text = selection.Text + "*************************************************/" + CStr(CrLf)
'DTE.ActiveDocument.Selection.LineUp(flase, 3)
DTE.ActiveDocument.Selection.EndOfLine()
End Sub
Sub AddMethodDesc()
'DESCRIPTION: 添加函数注释
Dim MethodName
MethodName = DTE.ActiveDocument.Selection.Text
DTE.ActiveDocument.Selection.StartOfLine()
selection = DTE.ActiveDocument.Selection
selection.Text = "/*************************************************" + CStr(CrLf)
selection.Text = selection.Text + "Function: " + MethodName + CStr(CrLf)
selection.Text = selection.Text + "Description: " + DefaultUserName + CStr(CrLf)
selection.Text = selection.Text + "Input: " + CStr(CrLf) + CStr(CrLf)
selection.Text = selection.Text + "Output: " + CStr(CrLf)
selection.Text = selection.Text + "Return: " + CStr(CrLf)
selection.Text = selection.Text + "Others: " + CStr(CrLf)
selection.Text = selection.Text + "History: " + CStr(CrLf)
selection.Text = selection.Text + "1. Date: " + CStr(Lf)
selection.Text = selection.Text + " Author: " + CStr(Lf)
selection.Text = selection.Text + "Version: " + CStr(Lf)
selection.Text = selection.Text + "Modification:" + CStr(Lf)
selection.Text = selection.Text + "*************************************************/" + CStr(Lf)
'DTE.ActiveDocument.Selection.LineUp(flase, 5)
DTE.ActiveDocument.Selection.EndOfLine()
- vs2008 注释宏
- VS2008 自用注释宏
- vs2008 中加入注释宏
- VS2008注释宏的制定
- VS2008注释宏的制定
- VS2008中添加注释的宏
- VS2008利用宏添加注释模板
- VS2008中添加注释的宏
- VS2008利用宏添加注释模板
- VS2008中使用宏添加注释模板
- VS2008中添加注释的宏
- [转]自定义宏注释模板 vs2008
- VS2008中添加注释的宏
- vs2008 注释模版
- VS2008添加注释和解除注释
- 设置VS2008 快捷键 快速注释
- 设置VS2008 快捷键 快速注释
- 这是给c++用的自动注释宏 在vs2008上测试通过
- 工作中遇到的一个相当有意思的问题(关于Windows和linux环境下执行PHP,ajax,javascript,flexigrid的一个莫名异常)
- KMP算法的next函数求解和分析过程
- nginx resin session同步问题
- Flex-SDK的构成
- javascript Ctrl +C、Ctrl +V等
- vs2008 注释宏
- FLEX FusionCharts 的样式
- java中文件上传包fileupload
- 设计一个编译器的基本思路
- 转让jquery控制权,让其跟其它$不相冲突
- 浅谈数据库设计技巧
- Linux中小小 grep 命令 大用途
- NIO系列1:框架拆解
- poj 1414 Life Line