RSS Feed

Modifying Templates in Visual Studio

I am making a lot of regions while creating classes. It helps me with the management of fields methods.

I am always creating regions. So why no to automate this process ?

We can make our own Visual Studio template which will be used when creating new VS item like class.

 

How to ?

 

Go to the folder :
"~InstallDir\Microsoft Visual Studio 9.0\Common7\IDE"

There you will find two catalogs : ItemTemplates and ItemTemplatesCache.

Those catalogs store all the default templates of Visual Studio. In ItemTemplates everything is stored in zip files.

In order to change the template just get the file from the zip package , modify it and put it in the zip. Modified file should be also moved to the ItemTemplatesCache.

Advertisements


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s