Using Folders in Projects

Home Page (Projects)OverviewsHow Do I... TopicsNMAKE Reference

Project files are organized into folders in the FileView pane of the Project Workspace. Visual C++ creates a folder for source files, header files and resource files, but you can reorganize these folders, or create new ones. You can use folders to organize explicitly logical clusters of files within the hierarchy of a project. For example, you could create folders to contain all your user interface source files, or specifications, documentation, or test suites. All file folder names should be unique.

The File Extensions field of the folder properties page is used when a new file is added to the project. If the file extension of the added file is listed in the folder's File Extensions field, the file is automatically added to the folder.

To add a folder

  1. On the Project menu, click Add To Project.

  2. Click New Folder.

  3. Enter the Name of the New Folder.

  4. Enter the File Extensions for the folder.

To rename a folder

  1. Right click on the folder you want to rename.

  2. Click Properties.

  3. On the General tab, type the new Folder Name.