Myeclipse 选中高亮

打开显示功能

选择Windows->Preferences->Java-> Editor-> Mark Occurrences ,勾选选项。这时,当你单击一个元素的时候,代码中所有该元素存在的地方都会被高亮显示。

设置高亮的颜色

Window/preferences/general/Editors/Text Editors/Annotations/Occurences

原文地址:https://www.cnblogs.com/andysd/p/3406133.html