How to work with the Projects tab and Files tab

In MPLAB® X, there are two ways to look at the files in your project. In the top left window, there are typically four tabs by default. The first two are used for looking at the files in your project: The Project tab and the Files tab.

Projects Tab Files Tab
ProjectsTab.png FilesTab.png

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 PC, even if you do this from the Projects tab. 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.

At first glance, these two tabs may seem redundant. While they serve similar purposes, in practice they can be very different.

Files Tab

The Files tab represents the files and subdirectories of your project directory as they actually are on your hard disk. From this view you can manipulate files and folders much like you would in your file manager (e.g. Windows Explorer, Nautilus, Finder, etc.) Just like in your file manager, you can move, rename and even delete files. However, be aware that deleting a file in this view will permanently delete the file. It will not be moved to your system's garbage can/recycling bin.

Projects Tab

The Projects tab represents a logical 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. In fact, you don't even need to store files of a particular type in the folder designated to hold them. For example, a C source file could be placed with no ill effect into the Header Files folder. You can completely customize this view by creating or deleting folders (at the top level as well as sub-folders) and moving files into any folder that makes sense to you.

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.

© Microchip Technology Inc.