Custom Formated Class.cs File - Visual Studio -
now structure c# class files in regions:
**
- property region
- field region
- constructor region
- method region
**
is there anyway create custom class template includes regions (and formatting) automatically when press add new item -> class... can save time?
i'm using visual studio 2013 ultimate.
you edit visual studio c# class template:
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 } }
you can see location of them in this answer.
Comments
Post a Comment