打开Window——Preferences 选择Java——Editor——Mark Occurent,右边勾选Mark occurrences of the selected element in the current file 可以看到点击book,下方的book都被深颜色标注了 本文转自建波李 51CTO博客,原文链接:http://blog.51cto.com/jianboli/1885482,如需转载请自行联系原作者