Projects Window

Open this window by selecting Window>Projects.

The Projects window is a NetBeans platform window. However, it has been customized to show the relevant logical (virtual) folders for an MPLAB X IDE project. Also, the context (right click) menus have been customized with items that are specific to MPLAB X IDE.

Figure 1. Projects Window Context Menus

Projects Window – Logical Folders

Additional logical folders have been added that apply to MPLAB X projects. Therefore, all folders displayed can be categorized as one of the following types of files:

Projects Window – Project Menu

Right click on a project name in the Projects window to pop up the Project menu. Menu items are shown in the table below.

Table 1. Project Context Menu Items
Menu Item Description
New Adds a new item 
For MPLAB® X IDE; embedded file types are available.
Add Existing Item Adds an existing file to the project.

The path to the file may be auto (selected by MPLAB X IDE), absolute or relative. Additionally, you may choose to copy the file into the project folder.

Add Existing Items from Folders Adds all files contained in the specified folder(s).

You may also specify a pattern to ignore certain folders from inclusion. Click Default to see the default pattern. See also Tools>Options, Miscellaneous button, Files tab, “Files ignored by the IDE.”

New Logical Folder Creates a new logical folder.

To view actual folders, see the Files window.

Locate Headers Locates all the header files (.h) called out in the C code project files and presents them in a checklist window so they may be added to the project

There are several reasons why you might want to add headers to your project:

  • The files can be opened from the Projects window under “Header Files” instead of hunting for them on your computer.
  • The project created by “Save Project As” will not contain header files unless they are added to the project; therefore this project may not build if any user-generated header files are required.
  • The zipped project created by “Package” will not contain header files unless they are added to the project; therefore the unzipped project may not build if any user-generated header files are required.

This feature is able to locate user-generated header files for all Microchip toolchains.

Add Item to Important Files Adds an existing item to the project.

The path to the file may be auto (selected by MPLAB X IDE), absolute or relative. Additionally, you may choose to copy the file into the project folder.

This is useful for adding simulator files, data sheet PDFs, and other files to the project for your reference.

Export Hex Exports the project build as a Hex file.

In MPLAB IDE v8, export is an extraction of memory objects. In MPLAB X IDE, export is the hex file result of a build; therefore, it needs to include all necessary auxiliary memory settings for configuration and EEPROM in code.

Build Builds the project according to the options selected in the Project Properties window.
Note: When you Debug or Run, your project is built automatically.
Clean and Build Cleans and then builds the project according to the options selected in the Project Properties window.
Note: When you Debug or Run, your project is built automatically.
Clean Cleans the project by deleting the outputs of previous builds.
Package Packages the current project into a .zip file.
Set Configuration Opens the Project Properties window so you can set the project configuration.
Run Executes the project code.
Debug Executes the project code in a debug environment.
Step In Steps through Paused code running in the debug environment.
Make and Program Device Programs the target device and holds in Reset (do not run).
Set as Main Project Sets this project as the main project.

This is useful when you are working with multiple projects.

Open Required 
Projects Loads all other projects that are required for the selected project to run.
Close Closes the selected project.
Rename Renames the project.
Move Moves the project to another location.

Along with the project, it moves the source files that are inside the project directory. Files outside the project directory are not moved. However, the project still maintains reference to the files outside the project directory – this is by design.

Copy Creates a copy of the project.

If the source files are within the project directory, the source files are also copied to the new location. Files outside the project directory are not copied. However, the project still maintains reference to the files outside the project directory – this is by design.

Delete Deletes the project files.

The project file is deleted but not the contents under the project directory. Only on selecting “Also delete sources” are all the source files deleted.

Code Assistance Selects assistance in creating code: code folding, code completion, etc.
Find Finds specific text in files in this project.
Share on Team Server Shares this project on a Team Server.
Versioning Controls the version of the project by using a version control system.
Local History To view, or revert to, the local history for the project.
Properties Sets project properties.

For MPLAB X IDE, the Project Properties window is specific to embedded development.

Projects Window – File Menu

Right click on a file name in the Projects window to pop up the File menu. The table below shows the specific menu items.

Table 2. File Context Menu Items
Menu Item Description
Open Opens this file in a tabbed Editor window.
Cut Removes the file from the project, but places a copy of it on the clipboard.
Copy Places a copy of the file on the clipboard.
Paste To paste the clipboard copy of a file into the project.
Exclude file(s) from current configuration Select a file or files to exclude from the current project configuration. Once a file has been excluded, right clicking on it again will show “Include file(s) from the current configuration.”

The same as opening the Project Properties window, selecting “File Inclusion/Exclusion” and including/excluding the file.

Compile File Compiles only the current file.
Remove from Project Removes the file from the project.

This does not delete the file from the PC. To delete the file from the project and the computer, use the Delete key.

Rename Renames the file.
Save as Template Saves the current file as a template file.
Local History To view, or revert to, the local history for the file.
Tools File tools include:
  • Apply Diff Patch: applies an existing patch created by Diff.
  • Diff to: shows the differences between this file and the one specified here.
  • Add to Favorites: adds this file to the Favorites window.
Properties Sets file properties differently from the project properties.

Select to exclude the file from the build or override the project build options by selecting a different configuration.

Projects Window – Window Menu

Right click in an empty area in the Projects window to pop up the Window menu. The table below shows the specific menu items.

Table 3. File Context Menu Items
Menu Item Description
New Project Launches the New Project wizard.
New File Launches the New File wizard.
Open Project Opens an existing project.
Open Recent Project Opens an existing project for the list of recent projects.
Open Project Group Opens an existing project group from the list of project groups.
Run Project Runs the main project.
Set Main Project Sets the main project from the list of open projects.