5.10.2.2 Add Files Outside the Project Folder
When adding a source file that is not in the project folder, add the file (store the path) as Relative. This creates an external folder (_ext) so the project can find the file when it is building.
To make use of navigation features such as the //TODO
action item and file context menus, you must tell the project where the files are
located. To do this:
- In the Projects window, right click on the project name and select Properties.
- Under Categories, click General.
- Next to Source Folders, click Add.
- Browse to the path of the external file(s) you have added to the project. Click the Select button.
- Click Apply or OK. Then rebuild the project.
When you import an MPLAB IDE v8 project, the source files are not in the project folder. Use > MPLAB IDE v8 to automatically import the files.