Adding Files and Folders to a C or C++ Project
You can add logical folders to your project, and you can add
files and folders to logical folders. Logical folders can be nested.
To add a logical folder to your project:
- Right-click the main node of your project or a logical folder
and choose New Logical Folder.
- Right-click the new folder and choose Rename. In the Rename dialog box, type the name
of the new folder and click OK.
To add a new file to your project:
- In the Projects window, right-click a logical folder and choose New.
- Choose the type of file you want to add from the submenu.
If the submenu does not include the type of file you want to add, do the
following:
- Choose Other from the submenu.
- On the Choose File Type page of the New File dialog box, select a
category and file type. Click Next.
- On the Name and Location page of the New File dialog box, type the file name in the File Name field.
Click Finish.
To add an existing file to your project:
- For all logical folders except the Important Files folder:
- Right-click the
folder and choose Add Existing Item.
- In the Select Item dialog box, select the item you want to add and click
Select.
- For the Important Files folder:
- Right-click the folder and choose Add Item to Important Files.
- In the Select External Item dialog box, select the item you want to add and
click Select.
Legal Notices