Vscode: Per-editor/tab background color

Created on 29 Sep 2017  路  11Comments  路  Source: microsoft/vscode

It would be awesome to have the ability to change the background color of an editor/tab on a per-editor/tab basis, programmatically. The use case I'm thinking about is ToDo files, but there might be others.

For instance this is what a todo file might look like in VSC:

screen shot 2017-09-29 at 15 35 41

code-tabs

This is what it looks like in Sublime:

screen shot 2017-09-29 at 15 35 51 1

sublime-tabs

Having those editors/tabs in a different color makes them stand out.

Also, some decorators used by the VSC extension in the screenshot are necessarily dynamic, and because of #32813 the colors used in them are provided via the settings. This means that if a user changes its theme he/she will also need to change those settings for those decorators to not look out of place. With the ability to set a custom background colors those decorators will look right no matter the theme.

*duplicate feature-request themes workbench-tabs

Most helpful comment

I think it would be useful in a multi-root environment, for tabs to inherit the colours of their relevant project settings. It gets confusing juggling grey tabs in a client/server environment.

All 11 comments

I really really need this feature.

Like this pic:

I agree. The current UI looks like the tab that I'm on is not selected (and vice versa). The selected tab colour should be lighter (grey) and other tabs should be darker (black).

I think it would be useful in a multi-root environment, for tabs to inherit the colours of their relevant project settings. It gets confusing juggling grey tabs in a client/server environment.

Would definitely love colored tabs

There is an extension that does exactly this -
ColorTabs
You can choose what you want to color, the tab, the title bar etc. based on a regex

@oreporan I don't think that extension can achieve something similar to what Sublime provides. Besides I'm asking for an API for this, which I would in turn use in my extensions.

Oh my bad - overlooked the "programatically" part in your original post

Anyways, some of the other comments seem to be looking for something that this extension provides if I understood correctly

I would love to have this feature too!
Currently I have a medium sized backend and many frontend applications within the same workspace (repository).
It starts to get confusing whenever I touch files across all sub-projects. Colored tabs would greatly help here - they build up a mental model and help to orientate a lot.

I think it would be useful in a multi-root environment, for tabs to inherit the colours of their relevant project settings. It gets confusing juggling grey tabs in a client/server environment.

It would be incredible if when working in a multi-root project you could define custom themes for each root folder. Ideally, these settings could live within a .vscode folder of each root folder as well as within the *.code-workspace file!

/duplicate #20652

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

borekb picture borekb  路  3Comments

v-pavanp picture v-pavanp  路  3Comments

shanalikhan picture shanalikhan  路  3Comments

chrisdias picture chrisdias  路  3Comments

VitorLuizC picture VitorLuizC  路  3Comments