Eclipse editor show variable occurrence

2019-03-24 05:38发布

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条回答
倾城 Initia
2楼-- · 2019-03-24 06:03

You can also enable it from

Window > Preferences > Java > Editor > Mark Occurrences
查看更多
\"骚年 ilove
3楼-- · 2019-03-24 06:09

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

查看更多
登录 后发表回答