來源:http://blog.sina.com.cn/s/blog_4abb70a20100tmxg.html
1.網(wǎng)友解決方法:
選擇:windows-> preferences->java->Editor->Mark Occurences
選擇最上的復(fù)選框青灼,下面的就有很多了岩榆。
其中的Local variables就是變量的高亮顯示茴晋。
2.也有更簡單的辦法:
網(wǎng)上搜了一下,原來是Toggle Mark Occurrences (Alt + Shift + 0)
這個按鈕沒有按下业筏,在工具欄的小黃顏色的筆 的形狀的圖標。
3.改變其顏色:
選擇:windows-> preferences->java->Editor->Mark Occurences->第一行有個“Annotations”點擊進入,顯示出列表,找到 Occurrence annotation 右邊選擇Color即可拾稳。
關(guān)于Annotations的鏈接問題:
改變顏色時,有的版本(比如日文版)可能沒有連接(Annotations)腊脱,這時可以這么做
General--->Editors----->Test Editors------>Annotations
關(guān)于上面的兩個英語單詞 Occerence 發(fā)生 访得;Annotations 標注(這時java1.5的一個新的語法),在這里的意思是:“標記”陕凹。