4.5. Adding and Removing Files
4.5.1. Adding Source Files
Select 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 fileselection dialog using either SHIFT or CONTROL key. Then click button to finally add the files in project.
By default, current editor file would be preselected for addtion in the dialog. Other convenient way to add a file is to select it in File Manager and choosing from the popup 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 is already 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 target's directory.
4.5.2. Removing Source Files
To remove a file from the project, select the file you want to remove from the Project View, right-click to open the popup menu and choose .
A confirmation dialog will appear, and the file will be removed from the project.
![]() | The file is not deleted! |
|---|---|
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 of the project operations such as compiling, building, distribution etc.. |
