第一步設置高亮顯示的顏色:it
Window-->preferences-->General-->Editors-->Text Editors-->Annotations-->右邊選擇點擊Occurrences-->設置Colorio
第二步啓用高亮顯示功能:di
Window-->preferences-->Java-->Editor-->Mark Occurrences"複選框勾選顏色