How to: Create Item Templates Home
This page is specific to:.NET Framework Version:2.03.54.0
Visual Studio
How to: Create Item Templates

This procedure enables you to create an item template using the Export Template wizard. For information on manually creating item templates, see How to: Manually Create Item Templates.

NoteNote:

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 if necessary.

  3. Edit the code file to indicate where parameter replacement should take place.

  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. Enter the icon file name, 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 2008\Templates\ItemTemplates\ folder.

See Also

Tasks

Other Resources

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View