Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Add New Item Dialog Box

Use this dialog box to add an item to the currently selected project. When you select an item from the Categories list, the appropriate files and references are added to your project.

The type of project selected determines the item choices that are displayed. If development policies defined in an application template apply to your project, these policies might simplify the choices displayed in this dialog box or shape the properties of some items and their values.

NoteNote

The options available in dialog boxes, and the names and locations of menu commands you see, might differ from what is described in Help depending on your active settings or edition. This Help page was written with the General Development settings in mind. To view or change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

To access this dialog box, choose Add New Item on the Project menu.

Categories

Lists the project item hierarchy.

NoteNote

If only one category exists, this dialog box contains only one frame, Templates.

Templates

Displays item templates for the related project item types. When you select a template or a category, a brief description of that item appears beneath the Categories frame.

In addition to using the templates that were installed when you installed Visual Studio, you can create your own templates (for more information, see Creating Project and Item Templates) or create a project item from a downloaded template (for more information, see How to: Add Items Using Online Item Templates).

Large Icons
LargeButtonsButton screenshot

Displays large icons for items in the Templates pane.

Small Icons
LittleButtonsButton screenshot

Displays small icons for items in the Templates pane.

Name

Enter the name of the file you want to create.

Add

Use this button to add the item to the currently selected project.

NoteNote

If your anti-virus software displays an alert offering to block script that the project template or wizard is running, choose not to block script otherwise Visual Studio shuts down. You can prevent this alert from showing when script is run by clearing the anti-virus software's setting for blocking script, however, changing this setting disables all script blocking, not just for Visual Studio.

Place code in separate file

Use this option to separate the functionality of your Web item into two files. This option is only available for Web items that support code separation. For more information, see Walkthrough: Creating a Basic Web Page with Code Separation in Visual Web Developer and ASP.NET Web Page Code Model.

Select master page

Use this option to select a master page for the item. This option is only available for Web items that support master pages. For more information, see Walkthrough: Creating and Using ASP.NET Master Pages in Visual Web Developer and ASP.NET Master Pages Overview.

For information on adding new items in templates for Visual C++, see Using Visual C++ Add New Item Templates.

For information on adding new items in templates for SQL Server projects, see Item Templates for SQL Server Projects.

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft