Changeing default behavior of Add Class in C#

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top