自定义Microsoft Visual Studio 代码模板,增加公司和个人信息

C:Program Files (x86)Microsoft Visual Studio 12.0Common7IDEItemTemplatesCSharp目录里面有各种新建模板分类:

修改Class.cs的模板

C:Program Files (x86)Microsoft Visual Studio 12.0Common7IDEItemTemplatesCSharpCode2052Class

 1 #region << 版 本 注 释 >>
 2 /*
 3      * ========================================================================
 4      * Copyright Notice © 2010-2015 wangyunpeng All rights reserved .
 5      * ========================================================================
 6      * 机器名称:$machinename$ 
 7      * 文件名:  $safeitemname$ 
 8      * 版本号:  V1.0.0.0 
 9      * 创建人:  wangyunpeng 
10      * 创建时间:$time$ 
11      * 描述    :
12      * =====================================================================
13      * 修改时间:$time$ 
14      * 修改人  :$username$
15      * 版本号  : V1.0.0.0 
16      * 描述    :
17 */
18 #endregion
19 using System;
20 using System.Collections.Generic;
21 $if$ ($targetframeworkversion$ >= 3.5)using System.Linq;
22 $endif$using System.Text;
23 $if$ ($targetframeworkversion$ >= 4.5)using System.Threading.Tasks;
24 $endif$
25 namespace $rootnamespace$
26 {
27     class $safeitemrootname$
28     {
29     }
30 }
Class.cs
原文地址:https://www.cnblogs.com/qiyebao/p/4226066.html