Eric Majerus
Eric Majerus

Reputation: 1228

Eclipse/STS Java editor background color forces white

I'm new to STS (coming from IntelliJ). I wanted a dark theme, so I installed Eclipse Color Themes plugin and applied a theme (Obsidian). It looks great with JSP, XML, HTML, JavaScript, properties files... etc.

But, when I open up a Java file I get a white background. Every other color is correctly changed (and largely unreadable on a white background).

It looks like this (cropped screenshot): https://i.sstatic.net/CIJGl.png

The dark color on the left is defined in General --> Editors --> Text Editors: Background color

Searching "background" in the preferences, I cannot find any other place where background colors are defined for Java files.

I'm using Spring Tool Suite version 3.3.0.RELEASE. I also opened Eclipse Juno and it does the same thing.

Upvotes: 4

Views: 10299

Answers (3)

Hany Sakr
Hany Sakr

Reputation: 2899

I faced the same issue with Mac, and fixed it simply by disabling the ANSI Console inside the STS; it marked with (A) label on the top right corner at the console.

enter image description here

Upvotes: 0

demiurg
demiurg

Reputation: 1

That`s what Aptana Plugin do. To fix This you should go to Window -> Preferences -> Aptana -> Themes and set check box called (Applay to all (non Studio) editors) in down right corner.

Upvotes: 0

javaAnto
javaAnto

Reputation: 193

Please go to Help->Eclipse market place

and in the Find bar, search for Color.

You'll be getting "Eclipse Color Theme by NodeEclipse...."

Click install button in under this search result.

Just follow install procedure and complete installation.

Now go to Preferences -> General -> Appearance -> Color Theme.

There you can find different themes for your STS....

All The Best

Upvotes: 4

Related Questions