Your favorite code color scheme or how to get Monokai sublime scheme in IDEA

614 views
Skip to first unread message

bodi...@gmail.com

unread,
Apr 11, 2017, 3:59:19 PM4/11/17
to Illuminated Cloud General Discussion
I recently moved from sublime+MavensMate to illuminated cloud + IDEA and trying to adjust code color scheme like i had it in sublime (Monokai).
And it is almost impossible. When i adjust color for methods or variables, IDEA just ignore that.
I find sublime monokai very useful and it helps me to be more productive and now i try to achieve the same in IDEA.
So guys, what scheme do you use, can you suggest anything?
Or just share your favorite one, so it helps me to find optimal scheme in IDEA.

What i had in sublime:








What i have in IDEA:


Scott

unread,
Apr 11, 2017, 5:13:00 PM4/11/17
to Illuminated Cloud General Discussion
This should be quite customizable these days under Settings>Editor>Colors & Fonts>Apex.  I know at least one user pretty much replicated the monokai theme, though I can't remember off the top of my head who it was.  Anyway, please let me know if for some reason that configuration section doesn't help you get (closer to) your desired syntax highlight scheme.

Regards,
Scott Wells

bodi...@gmail.com

unread,
Apr 11, 2017, 5:57:07 PM4/11/17
to Illuminated Cloud General Discussion
Hi Scott, thank you for the fast answer, i really impressed, that you 24/7 online!! 
So my mistake was that i tried to customize default language, and as you suggested, in apex tab i customized theme to 90% as i have in sublime.
One question, is there somewhere in IDEA special settings or system/xml files where i can change, which words belong to keywords and which are to parameters, if you tell me where and how i can do this by myself.
I suppose you did it somehow for apex

I would like to move all soql keywords to parameters and true, false, null to constants, then i will have 100% match to sublime monokai.

Here is what i have now:
sublime:


IDEA:



bodi...@gmail.com

unread,
Apr 11, 2017, 5:59:51 PM4/11/17
to Illuminated Cloud General Discussion
and by the way, i can send you this theme, so everyone can use it, maybe it will be useful for guys, who is switching from sublime, and more people stay on illuminated cloud plugin :)

Scott

unread,
Apr 11, 2017, 6:49:41 PM4/11/17
to Illuminated Cloud General Discussion
There's currently not a distinction between Apex keywords and SOQL keywords, nor is there a distinct fonts & colors setting for literals such as true/false/null.  It wouldn't be hard to add those, though.  Feel free to log an enhancement request in the public issue tracker if that's something you'd like to see added.

Thanks for offering the color settings!  Why don't you attach them here to make them available and I'll look at potentially including them as an out-of-the-box color configuration in a future build.

Regards,
Scott

bodi...@gmail.com

unread,
Apr 12, 2017, 9:08:59 AM4/12/17
to Illuminated Cloud General Discussion
Ok, here is custom monokai theme for idea:

Scott

unread,
Apr 12, 2017, 9:36:45 AM4/12/17
to Illuminated Cloud General Discussion
Thanks much for sharing!  As I mentioned, I'll look at whether this might be included with the plugin itself to help out those for whom this is a preferred color scheme.

Peter

unread,
Apr 13, 2017, 4:58:13 PM4/13/17
to Illuminated Cloud General Discussion
How can I try to use it in IDEA? How to import it?
Thanks,
Peter

Peter

unread,
Apr 13, 2017, 5:02:03 PM4/13/17
to Illuminated Cloud General Discussion
I also like the cobalt2 theme: https://github.com/wesbos/cobalt2
Do you know whether I can find some tool to convert it automatically to IDEA format?
Thanks,
Peter

Scott

unread,
Apr 13, 2017, 5:17:47 PM4/13/17
to discu...@illuminatedcloud.com
Hmmmm...good question, Peter.  I'm accustomed to these settings being exports as .jar files which would then be imported via File>Import Settings.  bodiamail (I apologize but I didn't catch your name), could you explain how you exported this file?  Would you mind using File>Export Settings to export them into a jar which you could attach here?

UPDATE: It looks like you can just drop the .icls file into ~/Library/Preferences/<IntelliJ-Path>/colors on Mac OS or ~/.IntelliJIdea<version>/config/colors on Windows to use it directly.  It would probably be best to use File>Export Settings with Editor Colors* options checked to make these available to other users.

Also, you might look at the following repository for color settings for JetBrains IDEs:


The existing Monokai Sublime Text 3 theme seems to import and work quite well unmodified:


Peter, it appears that there's also a Cobalt theme there that might act as a decent starting point for customization to your preferences:


Regards,
Scott
Reply all
Reply to author
Forward
0 new messages