Change active tab color vscode (ok)
Last updated
Was this helpful?
Last updated
Was this helpful?
157
With the tab.activeBorder
you can highlight the bottom of the active tab, but how do you highlight the top of the tab instead, like in Firefox's current design?
An example of highlighting with tab.activeBorder
:
Followasked Nov 30, 2019 at 23:047,59377 gold badges6060 silver badges106106 bronze badges
Just to chime a little. Once you are in the json settings files and you have helper turned on (I forget what that setting is called), you can see a popup of all the options when you type the opening quote: ]() Hovering over the options also shows the description: –
great question. the fact that by default the active tabs are almost impossible to differentiate does my head in –
Sorted by: Highest score (default) Trending (recent votes count more) Date modified (newest first) Date created (oldest first) 199
you can add this to .vscode/settings.json
It looks like this
Open your user
settings.json
(Ctrl + ,)
Two lines below the tab.activeBorder
, you will find tab.activeBorderTop
, which does exactly what you intended.
You can also colorize background of tab:
Go to Settings
Type colorCustomizations
in the link at the top
Now add JSON values such as
Many people have answered before but those are answers of people who know their way around VSCode; I've always found myself googling one or more steps of the most popular answer -- such as "open the settings", or "open the command palette".
Here is a DETAILED answer :
Open VScode
Open the "commands palette" ( shift+Ctrl+P )
Start typing "preference" in the search box. The autocomplete should offer "Preferences : Open user settings (JSON)".
Click on that choice. It opens a JSON file named "settings.json"
You need to understand the syntax of JSON files. But in essence you need to add a section named "workbench.colorCustomizations", containing two entries : "tab.activeBorderTop" and "tab.activeBackground"
set the color value to the desired value (in the screenshot, #FF0000 means red). activeBorderTop is for the thin colored bar at the top of the tab while activeBackground is for the whole tab's color.
Save the file (Ctrl+S) you should see the changes immediately.
Follow10.9k77 gold badges7979 silver badges111111 bronze badgesanswered Nov 12, 2020 at 22:093,32933 gold badges2222 silver badges1313 bronze badges
8adding "tab.activeBackground": "#26549e" is also helpful for highlighting the entire tab –
If you have N split panes, this only highlights one tab. Is there any way to highlight N instead? –
Report this ad167
You can visit the to get more information on this.
Followanswered Nov 30, 2019 at 23:047,59377 gold badges6060 silver badges106106 bronze badges
3Where is this file located ? – user4987870
2It doesn't work for me when it was Inside the theme section. The error was "Property is not allowed". But it had worked when I have moved it into section "workbench.colorCustomizations" (outside theme section) –
2Exactly what I was looking for. With One Dark Pro it's super difficult to see the current tab –
1Use "Preferences: Open Settings (JSON)" from the command palette to open your settings.json
file. On my machine it was in ~/Library/Application Support/Code/User/settings.json
–
11. for macOS user, cmd
+ shift
+ P
to enable your command input, 2. then either start typing open settings
for Preferences: Open Settings (JSON)
or just paste this command workbench.action.openSettingsJson
–
69
Follow74622 gold badges77 silver badges2020 bronze badgesanswered Jul 21, 2021 at 12:051,3381313 silver badges88 bronze badges
Something with alpha seems to work the best; "tab.activeBackground": "#ffffff20"
–
1This answer is widely incomplete compared to @Amol's answer –
please don't post answers to a different question here. If you want to answer a different question, do it in the right place. –
There is not always the right place. I searched for background changing and got this. Kinda helpful. –
64
Against the option "Workbench: Color Customizations" select "Edit in settings.json" as shown in the image below
Followanswered Feb 15, 2022 at 22:521,44011 gold badge1212 silver badges2727 bronze badges
3Best Answer! I personally like this setting: "tab.activeBorderTop": "#11ff008c", "tab.activeBackground": "#11ff001a", "tab.activeBorder": "#12ff00"
It kind of gives anime feel :) –
"1. Go to Settings"... psst... bottom left corner, the gear icon (or "Ctrl+Comma")... –
17