Eclipse double click on variable highlighting switch

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.