Eclipse中java文件选中变量名,相同变量都变色显示 .

第一步设置高亮显示的颜色:it

Window-->preferences-->General-->Editors-->Text Editors-->Annotations-->右边选择点击Occurrences-->设置Colorio

 

第二步启用高亮显示功能:di

Window-->preferences-->Java-->Editor-->Mark Occurrences"复选框勾选颜色