How to change the active tab header's color in

2019-02-02 21:49发布

问题:

I'm using a dark theme in IntelliJ 14, the problem is that I have difficulties in distinguish the active tab, because its header's background is not different than the other tabs I have opened (or it is, but very little). I looked all over the place for a method to change the color of the active tab header's background, no luck so far. Please help?

回答1:

  • Please note that this setting has worked for IntelliJ 14 back then, but is no longer applicable for newer versions
  • Find the comments below for plugins as a great alternative (Material Theme UI, Active IntelliJ Tab Highlighter)

Although, if you are still using IntelliJ 14:

Under File \ Settings \ Appearance & Behavior \ File Colors,

turn off "Use in Editor Tabs", as test tabs background are dark-green by default, which is similar to the dark-grey non-selected tabs.

After that, optionally you can set the colors under:

File \ Settings \ Editor \ Colors & Fonts \ File Status

and change the Foreground color of "Modified" status.

Now it will highlight the modified files (in version control).



回答2:

To me, the solution turned out to be a plugin implementation:

https://github.com/tobszarny/ActiveTabHighlighterPlugin

Feel free to fork it for alteration, or use as is. Now with color customization and with IntelliJ platform IDE's support, such as PhpStorm or RubyMine.

Now also in the plugins repository, for auto update whenever new version is made.



回答3:

The Material Theme UI allows additional settings

like color and thickness of the line below the active tab (pink in the screenshot)



回答4:

I solved this problem by using File Colors. The image below shows what you need to do. Set scope to All and choose the Custom colour (white):