In the Eclipse/myeclipse, if you accidentally lost the highlight of the variable. It's a real worry, but you don't have to worry about seeing this.
windows-> preferences-> java-> editor-> Mark occurences
The top caption check box is ticked, the following can be highlighted, the Local variables is a variable highlighting
And some of the other highlights.
Alt+shift+o can also turn off this
Below is reproduced thanks to the lower brother gave the URL
Directly to the integration here
Please look
Use shortcut keys or other reasons in eclipse, accidentally pressing the wrong, so that the variable highlighting is gone. Here are two solutions for you:
Method One:
Select:windows-> Preferences->java->editor->mark occurences. Select the top check box, and all of the options below will be selected. The local variables is the highlight of the variable. As shown in the following:
Method Two:
Use shortcut keys: Alt + Shift + O. When the shortcut key is pressed, the small yellow pen icon in the toolbar is selected () to indicate that the variable's highlight effect is already in effect.
In addition to the variable highlighting, we can also modify the color of the variable highlighting, the specific steps are:
Select:windows-> Preferences->java->editor->mark occurences, the first line has a "Annotations" click to enter, display the list, find occurrence annotation, select Color on the right.
Note: Some versions may not be connected (Annotations), then you can do this:
Select:windows-> preferences->general->editors->text editors->annotations, open the Annotations window and configure it. As shown in the following:
Finally, explain the occurrences related settings options:
Text as highlighted: highlighting
Text as squiggles: Curve display
Overiew ruler: Overview trying to Ruler
Vertical Ruler: Vertical ruler
Eclipse double click on variable highlighting switch