Reputation: 1683
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.
Upvotes: 21
Views: 9818
Reputation: 15409
You can also enable it from
Window > Preferences > Java > Editor > Mark Occurrences
Upvotes: 8
Reputation: 30875
You are asking about the "Toggle Mark Occurrences" the short cut for this is Alt + Shift + O
Upvotes: 39