开发者

How to cancel search highlight in Eclipse

When I search something in Eclipse, the s开发者_C百科earch items stay highlighted for some time. How do I remove this after I have found what I was looking for?


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


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


An alternative way is to run a search that will yield no results. For example file search, containing text - leave this field empty, files - some stupid extension like ".qwe".

For people concerned that https://stackoverflow.com/a/3545215/6012102 removes search results from history.

Select the search from history, press "Run the current search again" (2 rotating arrows icon). This will run the search and you will get all the results back (this brings back the text highlight as well unfortunately).


Disable Preferences->General->Text Editors->Annotations->Search Results->Text as.


For a single instance, delete the line and undo it: Ctrl+DCtrl+Z. This is faster than the other answers, and worked when they failed (for some buggy JSP I had).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜