Problem Description:
Use shortcut keys or other reasons in eclipse, accidentally pressing the wrong, so that the variable highlighting is gone.
1. User Solutions
:
Choose:
windows-> Preferences->java->editor->mark occurences
Select the top check box, and the following is a lot.
One of the
Local VariablesIs the highlight of the variable.
2. There are also simpler ways to do this:
Online Search, originally toggle Mark occurrences (Alt + Shift + 0)
This button does not press the icon in the shape of the small yellow color pen in the toolbar.
3. Change its color:
Choose:
windows-> Preferences->java->editor->mark occurences-> first line has a "Annotations" click to enter, display the list, find occurrence annotation to the right, select color.
Link questions about annotations:
When changing colors, some versions (such as Japanese) may not be connected (Annotations), you can do so
General--->editors----->test Editors------>annotations
About the above two English words occerence occurred; Annotations callout (at this point a new syntax for java1.5), here means: "tag". Original: http://307033.blog.51cto.com/297033/482721
Highlight the same variable in eclipse