From d53a31607a9c7134888c3837dfd8ec9d1d6818ce Mon Sep 17 00:00:00 2001 From: Tylor Pater Date: Thu, 10 Sep 2026 13:28:37 -0600 Subject: [PATCH 1/2] Enhance template example clarity Clarified the example for templates by specifying the default name in the New dialog and the location of the C# class template. --- docs/ide/how-to-create-item-templates.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/ide/how-to-create-item-templates.md b/docs/ide/how-to-create-item-templates.md index 67275af9c4d..e2aecfa65d5 100644 --- a/docs/ide/how-to-create-item-templates.md +++ b/docs/ide/how-to-create-item-templates.md @@ -66,10 +66,10 @@ You can edit the *.vstemplate* file to specify that your item template appears o 1. Open the *.vstemplate* file for editing. 1. Add a [ProjectSubType](../extensibility/projectsubtype-element-visual-studio-templates.md) element immediately after the `ProjectType` element, with value `Windows`, `Office`, `Database`, or `Web`. For example: `Database`. -The following example shows a *.vstemplate* file for `Office` projects. +The following example shows a *.vstemplate* file for `Office` projects, where `Class.cs` is the default name in the New dialog and `Class1.cs` is the name of the C# class template located alongside the *.vstemplate* file. ```xml - + Class An empty class file @@ -79,7 +79,7 @@ The following example shows a *.vstemplate* file for `Office` projects. Class.cs - Class1.cs + Class1.cs ``` From 28cd4b956a69c6b8141c3feb3795bc171d3b935e Mon Sep 17 00:00:00 2001 From: RoseHJM <100238090+RoseHJM@users.noreply.github.com> Date: Tue, 15 Sep 2026 13:06:42 -0700 Subject: [PATCH 2/2] Update example for Office project item templates Clarified item name in the Add New Item dialog for Office projects. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- docs/ide/how-to-create-item-templates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ide/how-to-create-item-templates.md b/docs/ide/how-to-create-item-templates.md index e2aecfa65d5..9ab19c0656e 100644 --- a/docs/ide/how-to-create-item-templates.md +++ b/docs/ide/how-to-create-item-templates.md @@ -66,7 +66,7 @@ You can edit the *.vstemplate* file to specify that your item template appears o 1. Open the *.vstemplate* file for editing. 1. Add a [ProjectSubType](../extensibility/projectsubtype-element-visual-studio-templates.md) element immediately after the `ProjectType` element, with value `Windows`, `Office`, `Database`, or `Web`. For example: `Database`. -The following example shows a *.vstemplate* file for `Office` projects, where `Class.cs` is the default name in the New dialog and `Class1.cs` is the name of the C# class template located alongside the *.vstemplate* file. +The following example shows a *.vstemplate* file for `Office` projects. `Class.cs` is the default item name in the **Add New Item** dialog, and `Class1.cs` is the source file included alongside the *.vstemplate* file. ```xml