您的位置:首页 > 编程语言 > C#

Vs2010在C#类文件头部添加文件注释的方法

2015-07-17 09:44 246 查看
步骤:

1.VS2010 中找到(安装盘符以C盘为例)

32位操作系统路径:C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplatesCache\CSharp\Code\2052\Class.zip

64位操作系统路径:C:\Program Files(X86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplatesCache\CSharp\Code\2052\Class.zip

2.在Class.cs 文件中添加如下代码。

/*

* ==============================================================================
*
* Filename: $safeitemname$
* Description:
*
* Version: 1.0
* Created: $time$
* Compiler: Visual Studio 2010
*
* Author: Your name
* Company: Your company name
*
* ==============================================================================
*/

或者:

/*************************************************************************************
* CLR版本: $clrversion$
* 类 名 称: $itemname$
* 机器名称: $machinename$
* 命名空间: $rootnamespace$
* 文 件 名: $safeitemname$
* 创建时间: $time$
* 作 者: xxx
* 说 明:。。。。。
* 修改时间:
* 修 改 人:
*************************************************************************************/

3.这样在新建c#类文件时就会自动添加注释说明信息了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: