如何更改 VS Code 中包含选项卡和其他操作的顶部栏以及面包屑栏的颜色? [重复]

问题描述 投票:0回答:1

如何更改 VS Code 中包含选项卡和其他操作的顶部栏以及面包屑栏的颜色?

the place of arrow mark to change the color

我尝试更改工具栏和状态栏,但没有成功。

visual-studio-code themes background-color workbench
1个回答
0
投票

您要查找的UI元素ID主要有以下几种:

"workbench.colorCustomizations": {
    "[Name Of Your Theme Here]": {
        "tab.activeBackground": "#ff0000",
        "tab.inactiveBackground": "#ff0000",
        "breadcrumb.background": "#ff0000",
        "editorGroupHeader.tabsBackground": "#ff0000"
    }
}

您需要从扩展程序的源文件中找出要使用的颜色值。请参阅扩展程序的 package.json 文件和

"contributes"
>
"themes"
字段以找出主题的 JSON 文件是什么,然后读取该文件并查找上述 UI 元素 ID 以及它们具有哪些颜色值。

另请参阅 https://code.visualstudio.com/docs/getstarted/themes#_customizing-a-color-theme

© www.soinside.com 2019 - 2024. All rights reserved.