1:点这个图标:2:Window --> Preference --> Java --> Editor --> Mark Occurrences 把 Mark occurrences of the selected element in the current file 也就是第一个复选框勾上。如果需要改变所找出来的颜色:Window --> Preference --> General --> Editors --> Text Editors --> Annotations 找到 Occurrences 点中,边上就可以更改颜色了。
window--preferences,搜索annotations,在Annotation Types一列选择Occurrences,右侧选择一个颜色,OK。
然后回到工作空间看看效果。
简单就快速。
选中那个单词ctrl+K一个一个找也能找见!