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.
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.
To access this dialog box, choose Add New Item on the Project menu.
Lists the project item hierarchy.
If only one category exists, this dialog box contains only one frame, 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) or create a project item from a downloaded template (for more information, see ).
- Large Icons
Displays large icons for items in the Templates pane.
- Small Icons
Displays small icons for items in the Templates pane.
Enter the name of the file you want to create.
Use this button to add the item to the currently selected project.
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, seeand .
- 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, seeand .
For information on adding new items in templates for Visual C++, see.
For information on adding new items in templates for SQL Server projects, see.