Changeing default behavior of Add Class in C#

  • Thread starter Thread starter tsteinke
  • Start date Start date
T

tsteinke

Since Visual Studio 2005. The default behavior of add->Class is to
leave off public. I would like to change it back, does anyone know how
to do this? It would be also cool for it to generate a constructor. I
have tried editing the class snippet to no avail, it seems weird that
it would use that.

Help
 
Hi,
in VS2005 you can create your own item templates, so that when you click
on "Add New" you can choose your template rather than the standard MS ones.
So for example you can create a template that has the correct header
information, adds some constructors that you always use etc. They are really
handy, a search on google should point you in the right direction.

http://www.google.com/search?hl=en&q=vs2005+templates

Hope that helps
Mark Dawson
 
Back
Top