天天看点

VS2017 C# 自定义模板

在C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ItemTemplates\CSharp\Code

找到Class.cs

在上面添加描述

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$

{

    public class $safeitemrootname$

    {

    }

}

继续阅读