My Eclipse IDE wouldn't highlight similar text/variable in Java code, till yesterday it was working fine. Today if I click on a variable inside a class it would not highlight same variable present elsewhere in class. Should I enable any thing in IDE?
Asked
Active
Viewed 7,809 times
6
-
Just out of interest why are you using eclipse over NetBeans? I'm new to Java and am currently deciding on which to use and am leaning to NetBeans. – griegs Aug 02 '10 at 02:43
-
I am working on Android , hence Eclipse – David Prun Aug 02 '10 at 02:48
3 Answers
17
Please check
'Toggle Mark Occurrences' enabled (It is in the tool bar or use shortcut Alt + Shift + O).
Checks the preference. Go to 'Preference' then navigate to 'General --> Editor --> Text Editors --> Annotations --> Occurrences'.

Sujee
- 4,985
- 6
- 31
- 37
-
Thanks a lot for the answer. I was trying new keyboard shortcuts and something toggled my Mark Occurrences. I was confused but now this solved my issue. – chong Aug 17 '12 at 07:15
-
1
I found the answer, I had to toggle mark occurrences alt+shift+o. If any one faces this issue you can try this to fix it.

David Prun
- 8,203
- 16
- 60
- 86
-
1
-
To avoid the issue in the future you could unbind alt+shift+o as I assume this issue occured as you accidentally pressed alt+shift+o without realizing that is was a key binding. – jontejj Apr 12 '13 at 14:25
0
Make sure Preference - > Annotations - Occurrences Text as checkbox list value should have selected Highlighted.

Janu
- 9
- 1