VS2015 类模板保存位置

如果安装在C盘,则是如下位置:

C:Program Files (x86)Microsoft Visual Studio 14.0Common7IDEItemTemplatesCSharpCode1033Class

可增加public修饰符,让每次新增类不用再手动增加public;

也可以修改默认的using

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$
    {
    }
}

原文地址:https://www.cnblogs.com/jacky-zhang/p/7363330.html