You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ide/how-to-locate-and-organize-project-and-item-templates.md
+23-2Lines changed: 23 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ ms.subservice: general-ide
19
19
20
20
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.
21
21
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.
23
23
24
24
This article describes the template file locations recognized by Visual Studio.
25
25
@@ -49,10 +49,20 @@ For example, the following directory has the Visual Basic item templates for Eng
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:
56
66
57
67
::: moniker range="vs-2019"
58
68
@@ -76,6 +86,17 @@ For example, the following directory has user project templates for C#:
76
86
77
87
-*C:\Users\UserName\Documents\Visual Studio 2022\Templates\ProjectTemplates\Visual C#*
78
88
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#*
0 commit comments