zoukankan      html  css  js  c++  java
  • 修改VS2017模板文件,添加文件头部自定义注释

    找到Class.cs文件

    找到VS2017安装目录下面的Class.cs文件,一般在C盘或者D盘

    模块文件位置:

    接口模版:C:Program Files (x86)Microsoft Visual Studio2017CommunityCommon7IDEItemTemplatesCSharpCode2052Interface

    类模版    :C:Program Files (x86)Microsoft Visual Studio2017CommunityCommon7IDEItemTemplatesCSharpCode2052Class

    我安装的VS2017是企业版的,安装在D盘,所以在D盘以下目录找到

    D:Program Files (x86)Microsoft Visual Studio2017EnterpriseCommon7IDEItemTemplatesCSharpCode2052Class

    修改Class.cs文件

    用Notepad++编辑修改Class.cs文件,一般先拷贝一份再改

    复制代码
    /// ***********************************************************************
    ///
    /// =================================
    /// CLR版本    :$clrversion$
    /// 命名空间    :$rootnamespace$
    /// 文件名称    :$safeitemrootname$.cs
    /// =================================
    /// 创 建 者    :wyt
    /// 创建日期    :$time$ 
    /// 邮箱        :786744873@qq.com
    /// 个人主站    :https://www.cnblogs.com/wyt007/
    /// 功能描述    :
    /// 使用说明    :
    /// =================================
    /// 修改者    :
    /// 修改日期    :
    /// 修改内容    :
    /// =================================
    ///
    /// ***********************************************************************
    
    
    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$
    {
        /// <summary>
        /// 
        /// <see cref="$safeitemrootname$" langword="" />
        /// </summary>
        public class $safeitemrootname$
        {
            
        }
    }
    复制代码

    保存就行了,然后新建类大功告成

    效果

    出处:http://www.cnblogs.com/wyt007/p/9838739.html

    参考:

    https://www.cnblogs.com/zzmzaizai/category/113424.html
    http://www.cnblogs.com/fengyie55/p/5015762.html

    再贴两个常用的格式:

    /*

    * =========================================================
    *
    * Filename: $safeitemname$
    * Description: 
    *
    * Version: 1.0
    * Created: $time$
    * Compiler: Visual Studio 2010
    *
    * Author: Your name
    * Company: Your company name
    *
    * =========================================================
    */

    或者:

       /*************************************************************************************
         * CLR版本:       $clrversion$
         * 类 名 称:       $itemname$
         * 机器名称:       $machinename$
         * 命名空间:       $rootnamespace$
         * 文 件 名:       $safeitemname$
         * 创建时间:       $time$
         * 作    者:          xxx
         * 说   明:。。。。。
         * 修改时间:
         * 修 改 人:
        *************************************************************************************/

    参考:https://www.cnblogs.com/easyzikai/archive/2012/10/14/2723328.html

  • 相关阅读:
    ZOJ3329One Person Game(循环型 数学期望)
    ZOJ3551Bloodsucker (数学期望)
    HDU3853LOOPS (师傅逃亡系列•三)(基础概率DP)
    HDU4035 Maze(师傅逃亡系列•二)(循环型 经典的数学期望)
    阿里云DataV专业版发布,为可视化创造更多可能!
    Logtail提升采集性能
    达摩院首席数据库科学家李飞飞:云原生新战场,我们如何把握先机?
    什么是最佳的视频用户体验?阿里云视频服务四大体验优化实践
    Lambda plus: 云上大数据解决方案
    基于大数据的舆情分析系统架构
  • 原文地址:https://www.cnblogs.com/mq0036/p/10313561.html
Copyright © 2011-2022 走看看