Modifying Templates in Visual StudioPosted: 2009/11/22
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.