tags:

views:

17

answers:

1

In Eclipse Standard Installation the editor marks all occurrences of a variable if you click on it with a cursor.

e.g. Setting the cursor somewhere on the 'foo' Variables it highlights all other foo's too.

public void printString(String foo){ System.out.println(foo); }

Any ideas where to switch this behavior on again or why the feature doesn't work ? I know the workaround is 'References->Workspace' but the auto highlighting is much more convenient.

+2  A: 

You are asking about the "Toggle Mark Occurrences" the short cut for this is Alt + Shift + O

Vash
Or `Alt + Cmd + O` on the Mac. It's the text marker button in the tool bar.
Fabian Steeg
Thanks! Such a useful feature, you only notice it when it's not there
Martin Dürrmeier