Eclipse highlighting the same variable selected

from http://technique-digest.iteye.com/blog/1343467


1. User solution:

select: windows->preferences->java->Editor->Mark Occurences

select the top checkbox, there are many below .

Among them, Local variables is the highlight of the variable.



2. There is also an easier way: I

searched the Internet, and it turned out that the button Toggle Mark Occurrences (Alt + Shift + 0)
was not pressed, and the icon in the shape of a small yellow pen in the toolbar.

3. Change its color:

select: windows-> preferences->java->Editor->Mark Occurences-> there is an "Annotations" in the first line, click to enter, display the list, find the Occurrence annotation and select Color on the right.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326990128&siteId=291194637