Edit online

Adding or Removing Files in the Main Files Directory

Adding Files to the Main File Directory

The Main Files directory only contains logical folders and linked files. To add files in the Main Files directory, use one of the following methods:
  • Right-click a file from your project and select Add to Main Files from the contextual menu.
  • Select Add Files or Add Edited File from the contextual menu of the Main Files directory.
  • Drag and drop files into the Main Files directory.
  • From the contextual menu of the Resource Hierarchy Dependencies view, use the Add to Main Files action.

You can view the main files for the current resource by selecting Properties from the contextual menu of the Project view and the main files for the current editor in the Properties and Information views.

Removing Files from the Main Files Directory

The main files that are already defined in the project are automatically marked in the tree. To disable a main file, remove it from the Main Files folder (for example, use the Ctrl+X or Delete keyboard shortcuts). Deleting files from the Main Files folder does NOT delete the files from disk. It just removes the logical files from that logical folder.