Export (0) Print
Expand All

How to: Add Items Using Online Item Templates

Visual Studio provides many default project item templates. If these templates do not meet your needs, you can search online for additional templates to use in Visual Studio.

Note Note

The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Customizing Development Settings in Visual Studio.

Creating a project item from an item template includes the following steps:

  1. Locating the item template.

  2. Installing the item template so that it appears in the Add New Item dialog box in Visual Studio.

  3. Creating a project item based on the item template from the Add New Item dialog box.

You can search for existing online item templates by keyword. After you locate the item template you intend to use, you can read additional information about the item template and decide whether to download it.

To search for an item template online

  1. In Solution Explorer, select a target project.

  2. On the Project menu, select Add New Item.

  3. In the Templates list, select Search Online Templates.

    The available templates appear organized under Search Online Templates.

  4. Click the template that you want, and then click the Add button.

After you download an item template, you must install it so that it appears in the Add New Item dialog box.

To install an item template downloaded from the web

  1. On the web page for the item template, click the link to download it.

  2. Click Open to download and install the item template at the same time.

    Security note Security Note

    It is highly recommended that you read the information in Publisher Status to determine whether the control is signed. For further security, click Review to display a list of the files that will be installed on your computer.

  3. Follow the prompts to install the template.

After you've located a suitable item template online, you can easily use this template to create a project item within Visual Studio.

Security note Security Note

Before you use a downloaded project item, determine the trustworthiness of the code outside of Visual Studio. Opening project items in Visual Studio automatically executes code from that file on your local machine in the trusted process of devenv.exe.

To add a downloaded item template to your project

  1. In Solution Explorer, select a target project.

  2. On the Project menu, select Add New Item.

  3. In the Templates list, select the item template you downloaded.

  4. Click Add.

Show:
© 2014 Microsoft