tags:

views:

676

answers:

5

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 action I have now disabled it. Is there a way I can enable it? I tried searching Google, but since I don't know what the feature is called, its kinda tough.

Its a really useful feature, and its annoying that its not working.

+9  A: 

I think the feature you mean is configured from:

Window -> Preferences -> Java -> Editor -> Mark Occurrences

Rytmis
Awesome awesome awesome!!!! Thanks mil! This was so annoying. I know its a silly question. Its the one thing in eclipse that annoys me. There is so many options, that if you get one wrong, you can spend a fair ammount of time looking for it.
Gerrie
Protip: the options dialog has a nifty find-as-you-type search, that's how I found it too. :)
Rytmis
+2  A: 

There's a little "hiliter" icon on the toolbar - it toggles "Mark Occurrences".

You probably accidentally pressed it when trying to select a menu item at some point. I had a friend who did that with the "show selected element only" toolbar button...

You can either press it again or configure as Rytmis says.

Scott Stanchfield
+2  A: 

alt-shift-o

Fortega
A: 

Haha! I was trying to find a method using ctrl-shift-o and for some reason, I accidentally toggled alt-shift-o. That explains why I lost "mark occurencies".

Thanks, Adrian

i.am.not.aids