VS2010在C#头文件中添加文件注释的方法
步骤:
1.VS2010 中找到(安装盘符以D盘为例)D:Program Files (x86)Microsoft Visual Studio 10.0Common7IDEItemTemplatesCacheCSharpCode2052Class.zip
2.在Class.cs 文件中原有代码如下:
using System; using System.Collections.Generic; $if$ ($targetframeworkversion$ >= 3.5)using System.Linq; $endif$using System.Text; namespace $rootnamespace$ { class $safeitemrootname$ { } }
3.在Class.cs文件中添加代码如下:
/*---------------------------------------------------------------- // Copyright (C) 2013 公司名称 // 版权所有。 // // 文件名:$safeitemrootname$.cs // 功能描述: // // 创建标识: $time$ // // 修改标识: // 修改描述: // // 修改标识: // 修改描述: // //----------------------------------------------------------------*/ using System; using System.Collections.Generic; $if$ ($targetframeworkversion$ >= 3.5)using System.Linq; $endif$using System.Text; namespace $rootnamespace$ { class $safeitemrootname$ { } }