In MPLAB® X, there are two ways to look at the files in your project. In the top left window, there are typically three tabs by default. The first two are used for looking at the files in your project: The Projects window (discussed here) and the Files window. Though they may show similar contents, their behavior and functionality are different.
To open the Projects window:
Keyboard: | Menu: | |
Ctrl+1 | Window ▶ Projects |
The Projects window represents a logical view (also called a virtual view) of your project's files. The folders in this view are for your convenience only - they do not represent the actual locations or organization of the files on your hard disk.
Files must be added to this window (as opposed to the Files window) for them to be a part of the project. The files themselves don't have to be in the project folder on your hard drive.
You can customize this view by creating or deleting folders (at the top level as well as sub-folders). If there are no open projects, the Projects window will be empty.
Using the Delete key or selecting Delete from the right-click menu will not only remove the file and/or folder from your project, it will also delete it from your hard drive. The deleted files do not go to the trash and are therefore not recoverable. To avoid this, use Remove From Project from the right click menu instead.
Projects Window Activities
Open a Project:
Right-click on a Project to:
- Close a Project
- Rename a Project
- Copy a Project
- Create a New Logical Folder
- Package a Project into a ZIP file
- Project Version Control
- Project Properties
- Adding an Existing File to a Project
- Adding a New File to a Project