Visual Studio has two types of templates: project templates and item templates.
1. Installed templates:
By default, templates installed with products are located in the following locations:
① \ <Visual Studio installation directory> \ common7 \ ide \ itemtemplates \ language \
② \ <Visual Studio installation directory> \ common7 \ ide \ projecttemplates \ language \
For example, c: \ Program Files \ Microsoft Visual Studio 9.0 \ common7 \ ide \ itemtemplates \
Ii. Custom templates
By default, a custom template is located in the following locations:
① \ My Documents \ Visual Studio 2008 \ Templates \ projecttemplates \ language \
② \ My Documents \ Visual Studio 2008 \ Templates \ itemtemplates \ language \
Example C: \ Documents ents and Settings \ USERNAME \ My Documents ents \ Visual Studio 2008 \ projecttemplates \ Visual C #\
3. install or uninstall the template (reset the Visual Studio template) command
① To install a new template, put the prepared template in the corresponding directory.
② To delete an old template, delete it in the corresponding directory.
Run the following command:
1. Disable all instances of Visual Studio.
2. Click "run" on the "Start" menu, type "cmd", and then click "OK ".
3. At the command prompt, locate the directory containing devenv.exe and type "devenv/setup ". (Fast execution speed, no response)
4. (It may take several minutes after Step 1 is completed, or restart the computer) Run Visual Studio again to find that your template has been installed or uninstalled.