如何自定义 Visual Studio Code 选项卡?

Har*_*dik 4 visual-studio-code

我正在使用 Visual Studio Code (v1.59)。截至目前,VSCode 的默认主题没有可区分的选项卡颜色。例如,活动选项卡看起来与非活动选项卡几乎相似。所以我需要知道如何改变它。

Har*_*dik 8

打开您的用户 settings.json (Ctrl+,) 或在设置的搜索框中搜索“workbench.color...” 。

在下面添加以下行"workbench.colorCustomizations"

"workbench.colorCustomizations": {
    "[Material Theme Ocean High Contrast]": {
    "tab.activeBorder": "#ff0000", //<--- applies to this specific theme: Material Theme Ocean High Contrast
},
    "tab.activeBorder": "#ff0000", //<--- applies to all theme
    "tab.unfocusedActiveBorder": "#000000"
    "tab.activeBackground": "#045980"//<--- BG: My Most Favourite.
}
Run Code Online (Sandbox Code Playgroud)