## Right-click Menus

You can use right-click menus in the Sources tab of the Project Configuration dialog. The right-click menu for a file allows you to open the source file in a separate window.

The right-click menu for a folder provides the following options:

- Close / Open
  Toggles the selected folder between closed and open. You can also simply left-click on a folder to close or open it.
- Remove Directory
  Removes this directory and all the files it contains from the project configuration.
- Convert to Relative Path / Convert to Absolute Path
  Toggles a directory between an absolute and relative file path. Relative file paths allow Understand for C++ to find source files if you relocate the project directory tree. For example, suppose a project is located at c:\myProject and the source files are in c:\myProject\bin\src. With relative paths, you can move the project to h:\projects\abc and source files to h:\projects\abc\bin\src. Projects can contain a mix of absolute and relative paths. Projects need to be reanalyzed after switching between relative and absolute directory references.
- Select -> Add All
  Changes the status of all files to “selected” (a box with an X).
- Select -> Clear All
  Changes the status of all files to “unselected” (an empty box).

Tip: To add just a few source files from a large directory, first add the entire directory to the project. Then use the right-click menu to remove all files from the project, and manually select the required files to add them back to the project.

Scientific Toolworks, Inc. http://www.scitools.com