Karen
Karen

Reputation: 122

Color - Changing Backcolor on Eclipse


Im using Eclipse to code. There is some problem with it which can be seen on this picture.
enter image description here
Is there anyway to remove the backcolor or simply change it to white? Because it is hurting my eyes. Thanks!

Upvotes: 0

Views: 96

Answers (1)

skomisa
skomisa

Reputation: 17363

To change the background color for occurrences:

  • Select Window > Preferences > General > Editors > Text Editors > Annotations
  • Select occurrences (org.eclipse...) from the list of Annotation types. There are two, but it doesn't matter which one you select since they both get updated.
  • Click the rectangle containing the current color and pick another color (or customize your own) in the Color dialog.
  • Click the Apply and close button.

setBackground

Done! If you want to see the new color for a file that is already open in the editor it seems that you have to reopen it.


UPDATE (3/30/18)

My original answer above is wrong. Based on feedback from the OP in the comments below I have updated and corrected this answer to show how to change the background color for Warnings rather than Occurrences:

To change the background color for Warnings:

  • Select Window > Preferences > General > Editors > Text Editors > Annotations
  • Select Warnings from the list of Annotation types.
  • Click the rectangle containing the current color and pick another color (or customize your own) in the Color dialog.
  • Click the Apply and close button.

setBackgroundWarnings

The screen shot above was taken on Eclipse Oxygen.3 Release (4.7.3), and obviously your list of Annotation types may differ from those in the screen shot.

Upvotes: 1

Related Questions