Using Virtual Folders
Go Up to How To Manage Files and Folders
For C++ only, the IDE provides the ability to organize your project files with virtual folders in the Project Manager tree. Virtual folders only affect the display of the folder structure in the IDE. Moving files into virtual folders does not change their actual location on disc.
Note: Virtual folders can only contain file system entries or other virtual folders.
Note: Changing the order of entries in a virtual folder changes the build order of the contained buildable entries.
To add a root-level virtual folder
- Choose View > Project Manager to display the Project Manager if it is not already visible in the IDE.
- Create a new project or open an existing one.
- Right-click the project node in the Project Manager tree and choose Add New > Virtual Folder. This opens the Add new folder dialog box and displays the default folder name Virtual folder 1.
- Type a new name for the virtual folder if you do not want to use the default.
- Click OK to add the folder. Click Cancel to not add the folder. The virtual folder appears as a dimmed folder under the project node.
- Drag files from the project structure into the virtual folder, or use the context menu commands to add items to the virtual folder.
To add a virtual sub-folder to an existing virtual folder
- Right-click an existing virtual folder in the Project Manager tree.
- Choose Add New > Virtual Folder.
To change the order of files in a virtual folder
- Click or right-click a file in a virtual folder and drag the file. The cursor changes to an arrow with a rectangle at the end to indicate you are moving the file.
- Drag the file to the right until a horizontal blue line appears. This line shows the new location of the file in the virtual folder and only appears between files. If the cursor changes to a slashed circle for some location, you can't move the file there.
- Drag the file to the desired location in the virtual folder and release the mouse button.
To delete a virtual folder
- Select a virtual folder in the Project Manager tree.
- Right-click and choose Delete.
- Click Yes in the Confirm dialog box to delete the folder. Click No or press the Esc key to cancel the delete.
Note: Deleting a virtual folder does not delete any of its files on the disk. It simply removes the folder from the Project Manager tree and leaves the files in their original locations.