Georgios
Georgios

Reputation: 1483

Visual Studio tab header color in the IDE

enter image description here

When I opened Visual Studio today, I observed there is a change in the background colour of the tabs, as shown in the picture.

How can I set it to the old/default color? Following Tools->Options, I didn't manage to find anything helpful.

Upvotes: 29

Views: 24684

Answers (4)

Rajitha Kithuldeniya
Rajitha Kithuldeniya

Reputation: 701

Visual Studio 2022 give this feature out of the box.

Tools -> Options -> Environment -> Tabs and Windows -> Colorize document tabs by Project

enter image description here

As a shortcut you can directly change it from the text editor

enter image description here

Upvotes: 5

Cody Gray
Cody Gray

Reputation: 244782

You have the Productivity Power Tools extension installed, which, among other features, allows customizing the colors of tabs. The idea is that you can color tabs based either on the project with which they are associated and/or the language in which the file is written (which is implemented via the file extension).

These tab-coloring features are all part of the general "Custom Document Well" package, which provides a bunch of advanced customization options for the document tabs. If you don't want any of these, but use other features of Productivity Power Tools, then you can turn them off. Go to Tools → Settings → Productivity Power Tools, and then turn "off" Custom Document Well:

If you just want to disable the coloring and return the tabs to their default colors, then go to Tools → Settings → Productivity Power Tools → Custom Document Well, and uncheck both of the "Color tabs" checkboxes:

If you just don't like the default colors and want to change them, then you can do so by going to Tools → Settings → Productivity Power Tools → Custom Document Well → Color Coding:

There are other interesting options, too; be sure to explore! Personally, this is one of my favorite features because it allows me to distinguish between headers, C code, C++ code, assembly code, and resource files at a glance, making it easy to find the one I want to switch to. I can recognize colors a lot faster than I can read names. (The project coloring is less useful to me since I tend to work on only one project at a time, but I can see that being very useful, too, for the same reasons. Humans have evolved to distinguish color very quickly.)

Update: This is not available for Visual Studio 2019; see this Developer Community thread where support was requested by the community and subsequently denied by Microsoft.

Upvotes: 56

Alex Kartynnik
Alex Kartynnik

Reputation: 119

Just FYI: In Productivity Power Tools 2017 instead of Settings → Productivity Power Tools → Custom Document Well you should enable additional extension, that will be installed while Productivity Power Tools installation: enter image description here

After that you will see tab for setting up colored tabs: enter image description here

So if you want to disable colored tabs - just disable Custom Document Well extension

Update: This is not available for Visual Studio 2019.

Upvotes: 8

A user
A user

Reputation: 1108

Go to Tools -> Options

Click on font and colors in the left hand pane

enter image description here

Now either

  1. you can USE DEFAULTS to reset the settings and try to customise your settings again.

  2. or you can select the item from Show settings for dropdown.. find the tab colour in the one it shows in your dropdown. Change the font background colour

Upvotes: 2

Related Questions