Find In File

MPLAB® X IDE provides two methods to find something in the file that is currently displayed in the editor.

The first method requires the least amount of effort. Highlight an existing piece of text (e.g., a variable name, function name, or any other text in your code). The editor will automatically highlight all the matches in the current source file in gold. Also, a gold bar will appear in the error stripe at the far right to indicate the relative position of all instances that have been found in the file. Clicking on a bar in the error stripe will take you to that instance of the highlighted item.

Click image to enlarge.

The second method is mostly used when you are searching for something that isn't presently visible to highlight. Select Edit > Find… from the main menu. This will display a bar at the bottom of the editor, containing a text box where you can type in your search term. All the matching terms will be highlighted in orange and a gold bar will appear in the error stripe at the relative position in the file of each instance that was found.

Click image to enlarge.
© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site 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.