VS Code自定义文件浏览器窗口颜色主题

问题描述 投票:9回答:3

有谁知道如何自定义VS Code中的文件浏览器窗口颜色主题?另外如何自定义行号的颜色?

例如,当使用内置的高对比度颜色主题时,我可以看到文件浏览器和行号颜色不同。但是在使用扩展颜色主题时,我找不到一种自定义颜色的方法,比如材质主题。

visual-studio-code vscode-extensions
3个回答
6
投票

从你的settings.json Ctrl +,

"workbench.colorCustomizations": {
    "sideBar.background": "#424d66",
    "list.hoverBackground": "#41a6d9",
}

文件浏览器使用sidebarlist颜色。

行号颜色:

"editorLineNumber.foreground": "#41a6d9",
"editorLineNumber.activeForeground": "#ff6a00",

https://code.visualstudio.com/docs/getstarted/theme-color-reference#_editor-colors


1
投票

这还没有实现,投票给GitHub Issue上的功能请求。


1
投票

enter image description here

假设你想要一个白色的侧边栏和黑色文本,你需要编辑你的settings.json像这样:

"workbench.colorCustomizations": {
"sideBar.background": "#ffffff",
"sideBar.foreground": "#000000",
"list.hoverForeground": "#ffffff" 
}
© www.soinside.com 2019 - 2024. All rights reserved.