Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/ide/how-to-create-item-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: `<ProjectSubType>Database</ProjectSubType>`.

The following example shows a *.vstemplate* file for `Office` projects.
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
<VSTemplate Version="2.0.0" Type="Item">
<VSTemplate Version="2.0.0" Type="Item" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">
<TemplateData>
<Name>Class</Name>
<Description>An empty class file</Description>
Expand All @@ -79,7 +79,7 @@ The following example shows a *.vstemplate* file for `Office` projects.
<DefaultName>Class.cs</DefaultName>
</TemplateData>
<TemplateContent>
<ProjectItem>Class1.cs</ProjectItem>
<ProjectItem ReplaceParameters="true">Class1.cs</ProjectItem>
</TemplateContent>
</VSTemplate>
```
Expand Down