VS2010在C#头文件添加文件注释的方法(转)

步骤:

1.VS2010 中找到(安装盘符以C盘为例)C:\Program Files\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#类文件时就会自动添加注释说明信息了

posted @ 2013-08-21 10:00  Jack.Y  阅读(208)  评论(0编辑  收藏  举报