John Glassmyer
John Glassmyer

Reputation: 301

remove search highlighting via keyboard shortcut in Eclipse

After doing a Java or File search in Eclipse, the (purple) highlighting of matches in files persists indefinitely, distracting me from whatever task I try to accomplish after I complete my search.

I know that I can open the Search view (by pressing Alt+Shift+Q,S, or by clicking its icon) and then click the "Remove All Matches" button that looks like an advertisement for Dos Equis, but I get tired of all this view-activating and clicking.

I want to clear search results in Eclipse using just the keyboard. Is there a way to do this?

Upvotes: 2

Views: 1135

Answers (1)

Chandrayya G K
Chandrayya G K

Reputation: 8849

Press Ctrl+F7. Keep on Pressing F7 when reach search view. Release Ctrl Key.

Close search view(in fact any view) as explained here

Once search view is removed from the current perspective search highlight will be removed automatically. If you want to see it again then open search view.

Upvotes: 4

Related Questions