Skip to content

Commit ce6c029

Browse files
committed
edits
1 parent 50d2b0a commit ce6c029

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

docs/ide/how-to-update-existing-templates.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,45 +16,47 @@ ms.subservice: general-ide
1616
#customer intent: As a developer, I want to learn how to edit project and item templates in Visual Studio, so I can easily keep my templates up to date.
1717
---
1818

19-
# Update existing project or item templates
19+
# Update existing templates
2020

21-
After you create a Visual Studio project or item template by compressing the template files into a *.zip* file, you might want to modify the template. This article explains how to modify an existing template by exporting a new template from a project that's based on the template, or by manually changing the files in the template.
21+
After you create a Visual Studio project or item template by compressing the template files into a *.zip* file, you might want to modify the template. This article explains how to modify an existing template by using the **Export Template Wizard** or by manually changing the files in the template.
2222

2323
## Use the Export Template Wizard
2424

2525
You can use the Visual Studio **Export Template Wizard** to update an existing template.
2626

2727
1. Choose **File** > **New** > **Project** from the menu bar.
2828

29-
1. Select an existing project template that you want to update, and create a new project.
29+
1. Select the project template you want. If you want to update an existing project template, select that template.
3030

31-
1. Modify the project in Visual Studio. For example, change the output type or add a new file to the project.
31+
1. Follow the steps to create the new project.
32+
33+
1. To change the project template, modify the project in Visual Studio. For example, change the output type or add a new file to the project.
3234

3335
1. To change an item template, select **Project** > **Add New Item**, and add the item template from the **Add New Item** dialog box. Make any changes you want in the item.
3436

3537
1. On the **Project** menu, choose **Export Template**. The **Export Template Wizard** opens.
3638

37-
1. Select either **Project Template** or **Item Template** on the **Template Type** page, depending on which one you want to export.
39+
1. On the **Template Type** page, select either **Project Template** or **Item Template**, depending on which type you want to export.
3840

3941
1. Follow the prompts in the wizard to export the template as a *.zip* file.
4042

41-
1. If you select the option to **Automatically import the template into Visual Studio**, the wizard places the *.zip* file at *%USERPROFILE%\Documents\Visual Studio \<version\>\Templates* in the *\\ProjectTemplates* or *\\ItemTemplates* folder to make it available for future projects. If you don't select this option, paste the *.zip* file in the user template location manually.
43+
1. If you select the option to **Automatically import the template into Visual Studio**, the wizard places the *.zip* file in the *\\ProjectTemplates* or *\\ItemTemplates* folder at *%USERPROFILE%\Documents\Visual Studio \<version\>\Templates* to make it available for future projects. If you don't select this option, paste the *.zip* file in the user template location manually.
4244

4345
1. Delete the old template *.zip* file if necessary.
4446

4547
## Manually update an existing template
4648

4749
You can update an existing template without using the **Export Template Wizard** by manually modifying the files in the template *.zip* file.
4850

49-
1. Locate the *.zip* file that contains the template. User templates are located at *%USERPROFILE%\Documents\Visual Studio \<version\>\Templates* in *\\ProjectTemplates* or *\\ItemTemplates*.
51+
1. Locate the *.zip* file that contains the template. User templates are located in the *\\ProjectTemplates* or *\\ItemTemplates* folder at *%USERPROFILE%\Documents\Visual Studio \<version\>\Templates*.
5052

5153
1. Extract the *.zip* file.
5254

53-
1. Modify or delete the current template files, or add new files to the template.
55+
1. Modify the current template files, or delete or add new files to a project template.
5456

5557
1. Open, modify, and save the *.vstemplate* XML file to handle updated behavior or new files.
5658

57-
For more information about the *.vstemplate* schema, see [Visual Studio template schema reference (extensibility)](../extensibility/visual-studio-template-schema-reference.md). For more information about what you can parameterize in the source files, see [Template parameters](template-parameters.md).
59+
For more information about the *.vstemplate* schema, see the [Visual Studio template schema reference](../extensibility/visual-studio-template-schema-reference.md). For more information about what you can parameterize in the source files, see [Template parameters](template-parameters.md).
5860

5961
1. In Windows Explorer, select the files for your template, including the *.vstemplate* file. Right-click the selection and select **Compress to** > **ZIP File**.
6062

@@ -64,7 +66,7 @@ You can update an existing template without using the **Export Template Wizard**
6466

6567
## Related content
6668

69+
- [Project and item templates](creating-project-and-item-templates.md)
6770
- [Customize templates](customizing-project-and-item-templates.md)
68-
- [Create project and item templates](creating-project-and-item-templates.md)
69-
- [Visual Studio template schema reference](../extensibility/visual-studio-template-schema-reference.md)
7071
- [Template parameters](template-parameters.md)
72+
- [Visual Studio template schema reference](../extensibility/visual-studio-template-schema-reference.md)

0 commit comments

Comments
 (0)