Daniel Baez
Daniel Baez

Reputation: 59

IntelliJ: Change the color of classes or data types for Java

How do I change the color of the class or data type in IntelliJ?

I set the values ​​I want to modify and apply the changes, but it just does not reflect in the code. It only lets me set the values ​​of the Strings, comments or numbers. I leave a screenshot so you can see what I'm trying to do.

Example:

Upvotes: 3

Views: 6308

Answers (3)

Daniel Baez
Daniel Baez

Reputation: 59

Hi guys this problem was due to an error in the java JDK installation, I just reinstalled the JDK and the IDE worked normal.

Upvotes: 1

Shailesh Suryawanshi
Shailesh Suryawanshi

Reputation: 1270

Can you try following steps.

  • Duplicate the existing theme.

enter image description here

  • Uncheck the Inherit values from and choose color in Foreground and Background from Editor > Color Scheme > Java

enter image description here

  • Don't forget to save and apply.

enter image description here

  • Make sure that you are using your custom scheme. You can also use on windows ctrl+` >> color scheme >> your custom scheme. In my case it was test.

Upvotes: 3

J.A.P
J.A.P

Reputation: 715

In IntelliJ, navigate to: Settings > Editor > Color Scheme > Language Defaults > Classes > Class name.

Then untick Inherit values from:. Then change the Foreground color.

You may change any colors you want under this tab. And don't forget to apply.

enter image description here

Upvotes: 3

Related Questions