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 }
  • 相关阅读:
    Oracle----oracle编程总结
    Oracle----oracle 事务总结
    Oracle----Oracle 11g XE release2安装与指导
    KMP之Z-function (扩展kmp)
    pkg-config
    对拍
    GPU并行编程小结
    DPHARD
    贪心/字符串好题
    树专题(伸展树 / 树链剖分 / 动态树 学习笔记)
  • 原文地址:https://www.cnblogs.com/rechen/p/5948099.html
Copyright © 2011-2022 走看看