How to remove highlighting from search results or selection matches

MPLAB X IDE's editor will highlight each instance where a match has been found from either a search or when some text is selected in the editor. For example if you select (highlight) a variable's name, each instance of that variable within the file will also be highlighted and indicated with a gold bar in the error stripe. While this feature can be invaluable for finding what you are looking for, it can also be a nuisance when you are done and no longer wish to see all those items highlighted. With the default settings, the highlighted items will not return to normal until you select or search for another item. To change this behavior and make it so that clicking in blank space will remove the highlighting, do the following:

From the main menu select Tools ► Options


Tools-Options-C.png
Click image to enlarge

In the window that opens, click on the C/C++ icon.


Tools-Options-C.png
Click image to enlarge

Uncheck the Keep Marks option.

To disable the highlighting feature altogether, uncheck the Mark Occurrences Of Symbol Under Caret option.


Click the OK 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.

© Microchip Technology Inc.