首页 > 解决方案 > 如何使用settings.json更改vscode标签栏的背景颜色

问题描述

我一直在关注 Coder Coder 的本教程,以使我的 vscode 看起来更好(教程链接https://youtu.be/pGzssFNtWXw)。根据视频,我打开了 settings.json 文件并编写了一些代码但是当我无法找到更改标签栏背景的代码时。(标签栏

这是我尝试过的:

"tab.background" : "#000000"

这是代码:

"workbench.colorCustomizations": {
        "editor.background": "#000814",
        "sideBar.background": "#000d20",
        "sideBarTitle.foreground": "#ffd60a",
        "sideBarSectionHeader.foreground": "#ffd60a",
        "activityBar.activeBackground": "#ffea81d5",
        "activityBar.background": "#22223b",
        "statusBar.background": "#ffd60a",
    }

标签: jsonvisual-studio-codethemes

解决方案


这也是我遇到的一个问题,但我发现要更改 settings.json 中标签栏的颜色,您必须使用editorGroupHeader.tabsBackground命令


推荐阅读