Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to cancel search highlight in Eclipse

Tags:

eclipse

When I search something in Eclipse, the search items stay highlighted for some time. How do I remove this after I have found what I was looking for?

like image 408
fastcodejava Avatar asked Aug 23 '10 06:08

fastcodejava


People also ask

How do I turn off highlighting in Eclipse?

Alt + Shift + O disables and enables this feature, which is called Mark Occurrences. There is also a toolbar button to toggle it on and off.

Why is Eclipse highlighting my code?

This is activated because of code coverage. If you want to remove it then follow these steps. Go to "Windows -> Show View -> Coverage" Select it.

How do I change the highlight in eclipse?

Open Preferences, and navigate to General->Editors->Text Editors->Annotations. Select Occurrences, and change the color to whatever you like..

How do I get rid of the blue lines in eclipse?

Under Window > Preferences > Java > Editor > Mark Occurrences the option is called "Keep marks when the selection changes" and disabling that yields the behavior you're looking for.


2 Answers

Remove your matches in the search view, that will remove the highlighting. I.e., click the button with the two X's in the search view.

If you cannot see that view, navigate to window -> show view -> Search

like image 181
K Erlandsson Avatar answered Sep 18 '22 18:09

K Erlandsson


AFIAK, the search result view has a toolbar button to clear the search results. This removes the highlighting in the editor.

like image 37
Andreas Dolk Avatar answered Sep 17 '22 18:09

Andreas Dolk