6

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?

David Prun
  • 8,203
  • 16
  • 60
  • 86

3 Answers3

17

Please check

  1. 'Toggle Mark Occurrences' enabled (It is in the tool bar or use shortcut Alt + Shift + O).

  2. Checks the preference. Go to 'Preference' then navigate to 'General --> Editor --> Text Editors --> Annotations --> Occurrences'.

Sujee
  • 4,985
  • 6
  • 31
  • 37
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
    Looks like you found the answer already :) – Sujee Aug 02 '10 at 03:00
  • 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