5

Having tried multiple color schemes I am not able to get Intellij IDEA v15 working properly on my Ubuntu box. I've upgraded from v14 but it had no results.

Am I missing something simple? No matter what I do (even modify colors in my custom color scheme) it looks like only java keywords, comments and strings are properly colored. Things like classes, fields, etc are always black.

Any pointers on how to get it working are much appreciated.

this is java code sample in the editor

1
  • Might be worth trying the latest v16 build to see if its a version specific issue. Otherwise my guess would be that it isn't recognizing the file as a Java file somehow?
    – matmo
    Commented Jan 13, 2016 at 20:36

3 Answers 3

18

In the Project pane, right click your Source directory and navigate to > Mark Directory As > Sources Root

I had this exact same issue, in addition IntelliJ was not identifying Java syntax errors, missing imports, and similar things. Hope this resolves the issue for you.

0
0

I also struggled with this problem. Marking the incorrect directory as source can really mess things up, even if you finally correct it. I had to completely delete my .idea folder in my project directory and invalidate the IDE cache. When the IDE reloaded the project it figured out everything out by itself and the color theme worked.

0

If your IDE enters power-saving mode, the color scheme may stop working. After trying multiple solutions, I realized the issue was solely caused by power-saving mode.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.