现在我在区域中构建我的C#类文件:
**
**
当我按添加新项目 - >时,是否有自动创建包含我的区域(和其他格式)的自定义类模板班级...... 所以我可以节省时间吗?
我正在使用Visual Studio 2013 Ultimate。
答案 0 :(得分:1)
您可以编辑Visual Studio C#类模板:
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$
{
#region Properties
#endregion Properties
#region Fields
#endregion Fields
#region Constructors
#endregion Constructors
#region Methods
#endregion Methods
}
}
您可以在this回答中查看它们的位置。