Custom Formated Class.cs File - Visual Studio -


now structure c# class files in regions:

**

  1. property region
  2. field region
  3. constructor region
  4. method region

**

is there anyway create custom class template includes regions (and formatting) automatically when press add new item -> class... can save time?

enter image description here

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

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -