Intellij color scheme not working properly on Ubuntu
Asked Answered
C

2

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

Cavefish answered 13/1, 2016 at 18:45 Comment(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?Nonobjective
M
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.

Mirk answered 20/1, 2016 at 23:2 Comment(0)
B
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.

Blow answered 18/8 at 15:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.