Creating a File Template
See Also
You can save a file as a template and add it to the types of templates
available in the template chooser in the New File wizard.
To create a new template:
- In the Projects window, right-click the file you would like to turn into a template and
choose Save As Template.
- In the Save As Template dialog box, select a category for the template and click OK.
To modify a template:
You can modify existing templates in the editor by performing the following steps.
- Choose Tools > Templates from the main menu.
- In the Template Manager, expand the appropriate category node and select the template.
- Click Open in Editor.
- In the Source Editor, make the desired changes to the template.
- Choose File > Save from the main menu.
In the Template Manager, you can click Duplicate to create new templates based on existing
templates.
You can create new folders and move templates between folders.
- Be aware that templates are not project-specific.
If you modify a template that is used by a wizard in the IDE
the modified template will be used by that wizard for generating files in all projects.
Legal Notices