Where to change highlight color for selected occurrences in Eclipse?

前端 未结 4 1328
北荒
北荒 2020-12-23 17:11

When a method or variable is selected it is highlighted in Eclipse with some color. Can anyone advice where to change that color? I\'m working under Windows OS.

相关标签:
4条回答
  • 2020-12-23 17:25

    This has made me mad for about half an hour.

    If the issue appears in JavaScript files, the option is under Preferences -> General -> Editors -> Text Editors -> Annotations and in the Annotation types choose JavaScript Occurences. Mine was set to black, nasty little thing took me too long to fix.

    0 讨论(0)
  • 2020-12-23 17:36

    Preferences -> General -> Editors -> Text Editors

    Current Line Highlight

    I think you want the above

    else

    Preferences -> Java -> Editor -> Syntax Coloring

    Element -> Java -> Method or Variable

    Check Enable and select color

    0 讨论(0)
  • 2020-12-23 17:45

    I've found where to change it:

    Preferences -> General -> Editors -> Text Editors -> Annotations and there you have to change both "Occurrences" and "Write occurrences".

    0 讨论(0)
  • 2020-12-23 17:49

    If you're using eclipse with PHP package and want to change highlighted colour then there is slight difference to above answer.

    1. Right click on highlighted word
    2. Select 'Preferences'
    3. Go to General > Editors > Text Editors > Annotations. Now look for "PHP elements 'read' occurrences" and "PHP elements 'write' occurrences". You can select your desired colour there.

    0 讨论(0)
提交回复
热议问题