Open the add files dialog
- Right click on the folder in the project tree where you want to add files
- Select either Add Existing Item… or Add Existing Items from Folders…
Add Existing Item… presents you with a dialog where you may select one or more files by clicking on the first file and Ctrl+Click or Shift+Click on additional files.
Add Existing Items from Folders… presents you with a dialog where you may select a folder from which all source and header files will be added to the project. When you use this option, a virtual folder will be created in the project tree folder you selected (e.g. Source Files) and every source or header file from the chosen directory will be added there. It doesn't matter that header files may end up in the Source Files folder or that source files may end up in the Header Files folder. All files in the project are handled by their file type/filename extension and not by the virtual folder in which they reside. You are always free to move the files to their respective folders yourself once they have been added.
If you chose to add an existing item:
- Select one or more files
- Choose how to store the file's path from the radio buttons near the bottom right. It is best to leave this as Relative unless you know what you are doing.
- Click the Select button
To choose multiple files, after clicking on one file hold down the Ctrl key and click on as many additional files as you want. To make it easier to select several files of the same type, select the file type from the Files of type combo box at the very bottom of the dialog. This will filter the display to show only files of the selected type.
If you chose to add existing items from folders:
- Click on the Add Folder… button
- Select a directory that contains files you want to add to the project
- Click the Select button in the Select Source File Folder dialog
- Repeat for as many folders as you wish to add
- Click on the Add button
Information contained in this publication regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.