Change active tab color vscode (ok)

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:

"workbench.colorCustomizations": {    // Can customize each aspect
    "[One Dark Pro]": {               // Optional
        "tab.activeBorder": "#0A84FF" // Active Tab Highlighting
    }
},

Sharearrow-up-rightImprove this questionarrow-up-rightFollowasked Nov 30, 2019 at 23:04psygo's user avatararrow-up-rightpsygoarrow-up-right7,59377 gold badges6060 silver badges106106 bronze badges

Add a commentarrow-up-right

5 Answers

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

"workbench.colorCustomizations": {
    "tab.activeBorder": "#ff0000",
    "tab.unfocusedActiveBorder": "#000000"
}

It looks like this

enter image description herearrow-up-right

Sharearrow-up-rightImprove this answerarrow-up-rightFollowedited Jul 6, 2022 at 15:41arrow-up-rightMauricio Gracia Gutierrez's user avatararrow-up-rightMauricio Gracia Gutierrezarrow-up-right10.9k77 gold badges7979 silver badges111111 bronze badgesanswered Nov 12, 2020 at 22:09tbo47's user avatararrow-up-righttbo47arrow-up-right3,32933 gold badges2222 silver badges1313 bronze badges

Add a commentarrow-up-rightReport this ad167

You can visit the Theme Color VS Code web pagearrow-up-right to get more information on this.

Open your user settings.json (Ctrl + ,)

Two lines below the tab.activeBorder, you will find tab.activeBorderTop, which does exactly what you intended.

Sharearrow-up-rightImprove this answerarrow-up-rightFollowedited Nov 25, 2020 at 14:26arrow-up-rightanswered Nov 30, 2019 at 23:04psygo's user avatararrow-up-rightpsygoarrow-up-right7,59377 gold badges6060 silver badges106106 bronze badges

Show 4 more commentsarrow-up-right69

You can also colorize background of tab:

Sharearrow-up-rightImprove this answerarrow-up-rightFollowedited Oct 18, 2023 at 2:12arrow-up-rightroapp's user avatararrow-up-rightroapparrow-up-right74622 gold badges77 silver badges2020 bronze badgesanswered Jul 21, 2021 at 12:05Zvezdochka's user avatararrow-up-rightZvezdochkaarrow-up-right1,3381313 silver badges88 bronze badges

Add a commentarrow-up-right64

  1. Go to Settings

  2. Type colorCustomizations in the link at the top

  3. Against the option "Workbench: Color Customizations" select "Edit in settings.json" as shown in the image below enter image description herearrow-up-right

  4. Now add JSON values such as

Sharearrow-up-rightImprove this answerarrow-up-rightFollowedited Oct 17, 2023 at 18:55arrow-up-rightanswered Feb 15, 2022 at 22:52Amol's user avatararrow-up-rightAmolarrow-up-right1,44011 gold badge1212 silver badges2727 bronze badges

Add a commentarrow-up-right17

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 :

  1. Open VScode

  2. Open the "commands palette" ( shift+Ctrl+P )

  3. Start typing "preference" in the search box. The autocomplete should offer "Preferences : Open user settings (JSON)".

enter image description herearrow-up-right

  1. Click on that choice. It opens a JSON file named "settings.json"

  2. 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"

enter image description herearrow-up-right

  1. 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.

  2. Save the file (Ctrl+S) you should see the changes immediately.

Last updated