更改如下目录下的模版文件即可实现添加版权信息功能
C:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE\ItemTemplates\CSharp\Code\2052\Class\Class.cs (默认路径)
如果安装被更改请到:[安装目录]\Common7\IDE\ItemTemplates\CSharp\Code\2052\Class\Class.cs

1 //=====================================================
2 //Copyright (C) 2013-$year$ rootmn LI
3 //All rights reserved
4 //CLR版本: $clrversion$
5 //新建项输入的名称: $itemname$
6 //机器名称: $machinename$
7 //命名空间名称: $rootnamespace$
8 //文件名: $safeitemname$
9 //当前系统时间: $time$
10 //当前登录用户名: $username$
11 //创建年份: $year$
12 //作者站点: http://www.cnblogs.com/rootmn
13 //======================================================
14
15 using System;
16 using System.Collections.Generic;
17 $if$ ($targetframeworkversion$ >= 3.5)using System.Linq;
18 $endif$using System.Text;
19 $if$ ($targetframeworkversion$ >= 4.5)using System.Threading.Tasks;
20 $endif$
21 namespace $rootnamespace$
22 {
23 class $safeitemrootname$
24 {
25 }
26 }

127

被折叠的 条评论
为什么被折叠?



