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:

  1. Right-click the main node of your project or a logical folder and choose New Logical Folder.
  2. 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:

  1. In the Projects window, right-click a logical folder and choose New > File/Folder.
  2. On the Choose File Type page of the New File dialog box, select a category and file type.Click Next.
  3. On the Name and Location page, type the file name in the File Name field. Click Finish.

To add an existing file to your project:

  1. For all logical folders except the Important Files folder:
    1. Right-click the folder and choose Add Existing Item.
    2. In the Select Item dialog box, select the item you want to add and click Select.
  2. For the Important Files folder:
    1. Right-click the folder and choose Add Item to Important Files.
    2. In the Select External Item dialog box, select the item you want to add and click Select.

Legal Notices