Skip to content

Commit 14728c8

Browse files
committed
Updates for Dev18
1 parent 87ca1a1 commit 14728c8

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

docs/ide/how-to-locate-and-organize-project-and-item-templates.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ms.subservice: general-ide
1919

2020
When template files are placed in a known location, Visual Studio can locate the files and make them available for creating new projects and new items. Templates provide a convenient way to create applications, access class libraries, implement unit tests, and set up configuration files.
2121

22-
Installed templates and user templates (*.vstemplate* files) are stored in different locations. You can also customize the locations with Visual Studio options.
22+
Installed templates and user templates (`.vstemplate` files) are stored in different locations. You can also customize the locations with Visual Studio options.
2323

2424
This article describes the template file locations recognized by Visual Studio.
2525

@@ -49,10 +49,20 @@ For example, the following directory has the Visual Basic item templates for Eng
4949
*C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\ItemTemplates\\VisualBasic\\1033*
5050

5151
::: moniker-end
52+
::: moniker range="visualstudio"
5253

54+
- *%ProgramFiles%\\Microsoft Visual Studio\\18\\\<edition>\\Common7\IDE\ProjectTemplates\\<Language\>\\<Locale ID\>*
55+
56+
- *%ProgramFiles%\\Microsoft Visual Studio\\18\\\<edition>\Common7\IDE\ItemTemplates\\<Language\>\\<Locale ID\>*
57+
58+
For example, the following directory has the Visual Basic item templates for English (LCID 1033):
59+
60+
*C:\\Program Files\\Microsoft Visual Studio\\18\\Community\\Common7\\IDE\\ItemTemplates\\VisualBasic\\1033*
61+
62+
::: moniker-end
5363
## Location for user templates
5464

55-
When you add a compressed (*.zip*) file that includes a *.vstemplate* file to the user template directory, Visual Studio makes the template available in the **New project** and **New item** dialogs. By default, user templates are placed in the following locations:
65+
When you add a compressed (`.zip`) file that includes a `.vstemplate` file to the user template directory, Visual Studio makes the template available in the **New project** and **New item** dialogs. By default, user templates are placed in the following locations:
5666

5767
::: moniker range="vs-2019"
5868

@@ -76,6 +86,17 @@ For example, the following directory has user project templates for C#:
7686

7787
- *C:\Users\UserName\Documents\Visual Studio 2022\Templates\ProjectTemplates\Visual C#*
7888

89+
::: moniker-end
90+
::: moniker range="visualstudio"
91+
92+
- *%USERPROFILE%\Documents\Visual Studio version\Templates\ProjectTemplates*
93+
94+
- *%USERPROFILE%\Documents\Visual Studio version\Templates\ItemTemplates*
95+
96+
For example, the following directory has user project templates for C#:
97+
98+
- *C:\Users\UserName\Documents\Visual Studio version\Templates\ProjectTemplates\Visual C#*
99+
79100
::: moniker-end
80101

81102
### Change location for user templates

0 commit comments

Comments
 (0)