Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you change IntelliJ colors on per project basis?

I often have 2-4 projects open at the same time in IntelliJ IDEA 15. It quickly becomes confusing switching between them, especially when classes are similarly named. Is there any way to use a different color scheme, or change a visual component of the IDE to easily identify which project is open?

Update: As of IntelliJ IDEA 2016.2, the accepted answer is correct. When this was written I was using IntelliJ 15, and there was no way to accomplish this.

like image 574
Eric Majerus Avatar asked Mar 01 '16 21:03

Eric Majerus


People also ask

How do I change the color of a class in IntelliJ?

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.

How do I change my console color in IntelliJ?

Press Ctrl+Alt+S to open the IDE settings and select Editor | Color Scheme. Select the setting pages related to consoles: Console Colors. Console Font.


4 Answers

You may want to set a different background picture for each project to distinguish them from each other. This could also be a single solid color picture for example. Enter Cmd+Shift+A and search for the Set Background Image action (Ctrl+Shift+A on Windows).

like image 178
Bas Leijdekkers Avatar answered Oct 11 '22 20:10

Bas Leijdekkers


Another possible solution might be to create different scopes for your projects and apply custom colors. Note: I see this more as a workaround because (IMHO) scopes should be mainly used 'in-project'. The downside with this solution is that you have also to handle the build-in scopes like Test.

enter image description here

like image 31
meistermeier Avatar answered Oct 11 '22 21:10

meistermeier


My solution is based on the above - where I created a 1px x 1px coloured png and used it as the background image at.. Preferences > Appearance & Behaviour > Appearance and there's a button 'Background image' .. But .. I found that resizing my project window caused a huge lag in refreshing it to the new size. .. So .. I tried with a 200px x 200px image and resizing now works as normal. Make sure you also tick the 'This project only' option.

like image 4
Haystack Avatar answered Oct 11 '22 21:10

Haystack


I've had the exact same issue with JetBrains products, so I built a plugin that solves exactly that, it gives you the option to choose different colors for the title bar, which is seen in the task view mode, and thus helps you differentiate between open projects by color!

Usage example

You can download it by searching Project-Color in the JetBrains plugin marketplace window on your IDE, or from my GitHub repository, where you can find more usage examples and a detailed explanation of the available features.

like image 3
Nowtilous overflow Avatar answered Oct 11 '22 19:10

Nowtilous overflow