开发者

Where to change highlight color for selected occurrences in Eclipse?

开发者 https://www.devze.com 2023-02-05 01:14 出处:网络
When a method or vari开发者_如何学Pythonable is selected it is highlighted in Eclipse with some color. Can anyone advice where to change that color? I\'m working under Windows OS.I\'ve found where to

When a method or vari开发者_如何学Pythonable is selected it is highlighted in Eclipse with some color. Can anyone advice where to change that color? I'm working under Windows OS.


I've found where to change it:

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


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


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.

Where to change highlight color for selected occurrences in Eclipse?


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.

Where to change highlight color for selected occurrences in Eclipse?

0

精彩评论

暂无评论...
验证码 换一张
取 消