Adding and Removing Files
- 4.5.1. Adding Source Files
- 4.5.2. Removing Source Files
4.5.1. Adding Source Files
Select the menu item . From the dialog, select the target to which the file should be added and the file itself. You can add multiple files at once. To do that, select multiple files from the file selection dialog using either the Shift or Ctrl key. Then click to add the files to the project.
By default, the current editor file will be preselected for addition in the dialog. Another convenient way to add a file is to right-click it in the File Manager and choose from the context menu.
If the file you choose has already been added to the project, then Anjuta will not add it again. It will also give you a warning that the file has already been added.
If the file you choose is not in the project directory, you will be asked to confirm that you wish to copy the file into the target's directory. Anjuta cannot add files which are outside of a target's directory without copying them in.
4.5.2. Removing Source Files
To remove a file from the project, right-click the file you want to remove in the Project window and choose from the context menu.
A confirmation dialog will appear, and the file will be removed from the project.
The file is not deleted from the filesystem. It still exists, and you can add it back again later if you so wish. The file is only removed from the project listing, and will not take part in any project operations such as compiling, building, or distribution.
