Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot highlight all occurrences of a selected word in Eclipse

I tried using the Toggle mark occurrences (Alt + Shift + O) button and also in Preferences -> General -> Editors -> Text Editor -> Annotations and setting the C/C++ Occurrences and C/C++ Write occurrences. But still when I select a word it won't highlight all occurrences of that specific word.

What I am using is Eclipse Indigo Service Release 2 in XP, with a C++ project.

like image 461
Adrian Avatar asked Apr 25 '12 06:04

Adrian


People also ask

How do I highlight text in Eclipse?

Go to Window -> Preferences -> General -> Editors -> Text Editors. Enable the option named Highlight current line . If you still do not see current line highlighted, then the highlight color might be set to white or the same as background color of your theme.

How do I select a word in Eclipse?

To select, you can use Shift + Alt + any arrow key.

How do I stop highlighting the selected variable 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.


1 Answers

You can try to activate Toggle Mark Occurrences with icon on Toolbar: Eclipse Toolbar

like image 137
Mark Avatar answered Oct 12 '22 21:10

Mark