zoukankan      html  css  js  c++  java
  • Visual Studio 2013 为C#类文件添加版权信息

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

    C:Program FilesMicrosoft Visual Studio 12.0Common7IDEItemTemplatesCSharpCode2052ClassClass.cs (默认路径)

    如果安装被更改请到:[安装目录]Common7IDEItemTemplatesCSharpCode2052ClassClass.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 }
  • 相关阅读:
    每日日报24
    每日日报23
    每日日报22
    链路层:MAC 地址
    应用层:电子邮件
    应用层:HTTP 协议
    应用层:DNS 域名系统
    运输层:TCP 拥塞控制
    运输层:拥塞控制原理
    JAVA学习日记26-0731
  • 原文地址:https://www.cnblogs.com/rechen/p/5948099.html
Copyright © 2011-2022 走看看