开发者

Eclipse editor show variable occurrence

开发者 https://www.devze.com 2023-01-10 08:23 出处:网络
In Eclipse Standard Installation the editor marks all occurrences of a variable if you click on it with a cursor.

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 s开发者_如何学运维omewhere 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.


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


You can also enable it from

Window > Preferences > Java > Editor > Mark Occurrences
0

精彩评论

暂无评论...
验证码 换一张
取 消