I have an odd problem. In Eclipse Ganymede, I used to be able to highlight a variable, and it would highlight the use of that variables in that method. However through some
On Mac OS it's opt-cmd-O I pressed that once by mistake, thanks to this question I found my way back
In Eclipse Kepler,
You can simply use the "Toggle Mark Occurrences" icon on the tool bar or you can use keyboard short cut alt+shift+O.
Window > Preferences > Java > Editor > Mark Occurrences
. Enable "Mark occurrences of the selected element in the current file" and click Apply.
I had a similar problem. I solved it by uninstalling the erlang plugin called "erlide".
There's a little "highlighter" icon on the toolbar - it toggles "Mark Occurrences".
From the preferences window, the feature you mean is configured by navigating to:
Window -> Preferences -> Java -> Editor -> Mark Occurrences
I had the similar problem where the references were not highlighted,
on enabling the mark occurrences in windows-prefrences-java-editor
I am able to highlight the references