Tab coloring in VSCode Extension #312
-
|
I wanted to get some insight on how I could color multiple tabs in vscode with different colors. More specifically:
I have already looked into an approach that has to do with updating the Basically I don't want to modify the settings.json file repeatedly. (Or ideally not edit it at all) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
Hi @XXDIL , The current Tabs API doesn't allow you to change its color so, for now, you will be forced to touch That being said, I would suggest you to open an issue in VS Code repo, asking for a new/updated API Hope this helps |
Beta Was this translation helpful? Give feedback.
-
|
Did you look at the file decoration API which lets you color the filename, which is in the Explorer and the foreground of the tabs? |
Beta Was this translation helpful? Give feedback.
-
|
If you want to color your vs code tabs you can't do that with the current API you have to do some patching, I made the same in my extension https://github.com/mondersky/tabscolor-vscode |
Beta Was this translation helpful? Give feedback.
Hi @XXDIL ,
The current Tabs API doesn't allow you to change its color so, for now, you will be forced to touch
settings.jsonin order to define custom colors. But, it only supports/exposes two tab states (active, inactive), and the group concept it has today, if I remember correctly, is related to the four groups where you can split/organize editors. I'm not sure this could be updated/replaced for this group of tabs you need.That being said, I would suggest you to open an issue in VS Code repo, asking for a new/updated API
Hope this helps