Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

How to: Create Item Templates

The steps in this topic let you create an item template by using the Export Template wizard.

Note Note

You cannot export templates for C++ projects.

To add a custom project item template to the Add New Item dialog box

  1. Create or open a project in Visual Studio.

  2. Add an item to the project and modify it if you want to.

  3. Modify the code file to indicate where parameter replacement should take place. For more information, see How to: Substitute Parameters in a Template.

  4. On the File menu, click Export Template.

  5. Click Item Template, select the project that contains the item, and click Next.

  6. Select the item for which you want to create a template, and click Next.

  7. Select the assembly references to include in the template, and click Next.

  8. Type the icon file name, preview image, template name, and template description, and click Finish.

    The files for the template are added to a .zip file and copied to the ..\Users\username\Documents\Visual Studio Version\Templates\ItemTemplates\ folder.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.