Tuna
Tuna

Reputation: 3005

How to change color of active tab

As the title, I want to change color of active tab to make it to be more different from other. I went through https://devnet.jetbrains.com/thread/274446 but it's not enough!

Is there any way to do that?

Upvotes: 14

Views: 7200

Answers (7)

transparentcow
transparentcow

Reputation: 41

Tinkering with the Tabs/Underline/Background is a pretty good alternative, also will work well with test files enter image description here

enter image description here

Upvotes: 0

Kacper Cichecki
Kacper Cichecki

Reputation: 680

For IntelliJ IDEA 2021.3.2 (Community Edition) You can change it in settings:

Settings | Editor | Color Scheme | General | Editor | Tabs | Selected Tab

There you can change Background and customize the view in other ways. enter image description here

Upvotes: 11

Steve Chambers
Steve Chambers

Reputation: 39424

The Active IntelliJ Tab Highlighter plugin provides a simple way of solving this problem.

  1. Go to File -> Settings.
  2. In Plugins type "Active IntelliJ Tab Highlighter into the search box.
  3. Click on the "Search in repositories" link.
  4. Select the Active IntelliJ Tab Highlighter and click on the green Install button.
  5. Close the window and restart IntelliJ
  6. The active tab should now be highlighted in purple. If required, a different color can be chosen via File -> Settings -> Tools -> Active Tab Highlighter Plugin -> Background (clicking on it brings up a color picker). I personally went with a less garish dark gray color (AAADAA).

Upvotes: 5

Akash Agarwal
Akash Agarwal

Reputation: 2530

I was losing the track of active tab using the darcula theme, in a test directory with a newly created file and staged with git. I ended up changing the File status color.

You will have to make a copy of your theme first:

enter image description here

Upvotes: 0

kooker
kooker

Reputation: 373

Although the question is quite old, when I googled the problem, this link was in the first three results, so I'll add my 5 cents as well.

Even though I could not find the way to brighten the color of an active tab alone, I was able to solve the problem by changing the color for a given scope altogether. In my case, it was the Tests scope, set to the default green, where the active tab was barely distinguishable from inactive ones, so I went to Settings > Appearance & Behavior > File Colors (exact location may depend on your Idea's version), selected the Tests scope and selected Custom color; the exact RGB value that worked for me was 1A7250. As a side-effect, the test directory's background color in the Project view also changed, which may or may not be a bad thing.

Regards, hope this helps.

Upvotes: 0

qmn1711
qmn1711

Reputation: 902

An alternative way, Setting > File colors:

  • check Enable File Colors, Use in Editor Tab
  • uncheck Use in Project View
  • add new scope with your color (ex: Project Files with orange color)

Upvotes: 1

treehouse
treehouse

Reputation: 2531

I just found out in intellij, it's "file scope" that controls a file's background in project pane as well as in the tabs. Here is the steps to add/modify current scope/tab background.

The default Darcula theme sets the "Tests" scope to this dark green color which is very close to the tab control background. I always lost track of which tab is activated when it's one of the test files. Hope this helps.

Upvotes: 5

Related Questions