当前位置:网站首页>给VS2010自动设置模板,加头注释
给VS2010自动设置模板,加头注释
2022-07-25 14:59:00 【Kimizhou_blog】
很多程序员都会需要头注释。。比如说作者是谁之类的。。。
首先你找到你自己的 VS2010安装目录


最终打开Class.cs 编辑加上注释。。。

种类也各有不用,分别为Class.zip、Interface.zip、Form.zip等添加注释(我们是以Class.zip为例,也就是以类为基础)
此外:
这里$var$ 都是系统的变量,模板参数是要区分大小写的,大家需要注意。系统提供的可用的参数如下:
参数 说明
clrversion
公共语言运行库 (CLR) 的当前版本。
GUID [1-10]
用于替换项目文件中的项目 GUID 的 GUID。最多可以指定 10 个唯一的 GUID(例如,guid1))。
itemname
用户在添加新项对话框中提供的名称。
machinename
当前的计算机名称(例如,Computer01)。
projectname
用户在新建项目对话框中提供的名称。
registeredorganization
HKLM/Software/Microsoft/Windows NT/CurrentVersion/RegisteredOrganization 中的注册表项值。
rootnamespace
当前项目的根命名空间。此参数用于替换正向项目中添加的项中的命名空间。
safeitemname
用户在“添加新项”对话框中提供的名称,名称中移除了所有不安全的字符和空格。
safeprojectname
用户在“新建项目”对话框中提供的名称,名称中移除了所有不安全的字符和空格。
time
以 DD/MM/YYYY 00:00:00 格式表示的当前时间。
userdomain
当前的用户域。
username
当前的用户名。
year
以 YYYY 格式表示的当前年份。
边栏推荐
猜你喜欢

GameFramework制作游戏(二)制作UI界面

Niuke multi school E G J L

L1和L2正则化

41 图片背景综合-五彩导航图

Deng Qinglin, a technical expert of Alibaba cloud: Best Practices for disaster recovery and remote multi activity across availability zones on cloud

Overview of cloud security technology development

Heyuan City launched fire safety themed milk tea to boost fire prevention and control in summer

String type time comparison method with error string.compareto

As methods for viewing and excluding dependencies

云安全技术发展综述
随机推荐
没错,请求DNS服务器还可以使用UDP协议
43 box model
Syntax summary of easygui
LeetCode_ Factorization_ Simple_ 263. Ugly number
I hope some suggestions on SQL optimization can help you who are tortured by SQL like me
About RDBMS and non RDBMS [database system]
Overview of cloud security technology development
MySQL的登陆【数据库系统】
Go language founder leaves Google
[C topic] the penultimate node in the Niuke linked list
快速搭建Dobbo小Demo
关于RDBMS和非RDBMS【数据库系统】
06、类神经网络
IP地址分类,判断一个网段是子网超网
Educational codeforces round 132 (rated for Div. 2) C, d+ac automata
【MySQL必知必会】触发器 | 权限管理
C language and SQL Server database technology
Gameframework making games (II) making UI interface
"How to use" decorator mode
QObject源码剖析-d指针和q指针