vs2017 创建C#类时添加文件头

C#类模板地址:C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ItemTemplates\CSharp\Code\2052\WebClass\Class.cs

/**************************************************************************
模    块:        
项    目:        $rootnamespace$
作    者:        $machinename$这里用了计算机名,也可以用$username$是计算机当前登录用户名
创建时间:         $time$
Copyright (c)    Shenzhen Huidu Technology Co.,Ltd.

描    述:
***************************************************************************/
using System;
using System.Collections.Generic;
$if$ ($targetframeworkversion$ >= 3.5)using System.Linq;
$endif$using System.Web;

namespace $rootnamespace$
{
    /// <summary>
    /// 
    /// </summary>
    public class $safeitemrootname$
    {
    }
}

 

posted @ 2018-07-06 10:59  chenjingchun  阅读(2455)  评论(0编辑  收藏  举报