Partilhar via


Como: Adicionar itens usando modelos de Item on-line

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.

ObservaçãoObservação

Caixas de diálogo e comandos de menu que você vê podem diferir das descritas na Help dependendo das suas configurações ativas ou edição. Para alterar as configurações, escolha Import and Export Settings sobre o Ferramentas menu. For more information, see Trabalhando com configurações.

Creating a new 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.

Search for project item templates online

You can search for existing online item templates by keyword. Once you have located the item template you intend to use, you can read additional information about the item template and decide whether or not 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. No modelos de lista, selecione Modelos de pesquisa on-line.

    Os modelos disponíveis aparecem organizados em Modelos de pesquisa on-line.

  4. Clique no modelo desejado e clique no Add botão.

Install item templates

Once you have downloaded item template, you must install the item template so that it appears in the Add New Item dialog box.

To install item templates downloaded from the Web

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

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

    The Visual Studio Content Installer wizard appears.

  3. On the Welcome to the Visual Studio Content Installer Wizard page, select the items you intend to install and then choose Next.

    Observação de segurançaObservação sobre segurança

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

    The Installing Content page appears.

  4. On the Installation Complete page, click Finish.

Use the item template to create a new item in your project

Once you have located a suitable item template online, you can easily use this template to create a new project item within Visual Studio.

Observação de segurançaObservação sobre segurança

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. No modelos de , selecione o modelo de item que você baixou.

  4. Click Add.

Consulte também

Tarefas

Como: Usar um Starter Kit para criar um novo projeto.

Conceitos

Como: Localize e organizar modelos de projeto e Item