更改如下目录下的模版文件即可实现添加版权信息功能

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

 

//=====================================================

     //Copyright (C) 2013-$year$ rootmn LI

     //All rights reserved

     //CLR版本:        $clrversion$

     //新建项输入的名称: $itemname$

     //机器名称:        $machinename$

     //命名空间名称:     $rootnamespace$

     //文件名:           $safeitemname$

     //当前系统时间:     $time$

     //当前登录用户名:   $username$

     //创建年份:         $year$

     //作者站点:        http://www.cnblogs.com/rootmn

 //======================================================

 

using System;

using System.Collections.Generic;

$if$ ($targetframeworkversion$ >= 3.5)using System.Linq;

$endif$using System.Text;

$if$ ($targetframeworkversion$ >= 4.5)using System.Threading.Tasks;

$endif$

namespace $rootnamespace$

{

    class $safeitemrootname$

    {

    }

}

 

 

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 }

 

相关文章:

  • 2021-05-27
  • 2021-04-23
  • 2021-11-29
  • 2021-11-11
  • 2022-01-06
  • 2022-02-04
  • 2021-03-26
  • 2022-03-02
猜你喜欢
  • 2021-11-19
  • 2022-03-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
相关资源
相似解决方案