如何在 VS Code 的 activity 栏中设置活动元素的样式?
How to style the active element in VS Code's activity bar?
根据 October release of VS Code,现在可以通过 activityBar.activeBorder
和 activityBar.activeBackground
控制 Activity 栏活动元素的边框和背景。
但是将这些添加到我的 settings.json
似乎并没有更新活动元素:
"other.setting.foo": "bar",
"activityBar.activeBorder": "#8A2BE2",
"activityBar.activeBackground": "#FFB6C1"
"other.setting.baz": "qux",
activityBar.activeBorder
和 activityBar.activeBackground
需要嵌套在 workbench.colorCustomizations
:
中
"other.setting.foo": "bar",
"workbench.colorCustomizations": {
"activityBar.activeBorder": "#8A2BE2",
"activityBar.activeBackground": "#FFB6C1"
},
"other.setting.baz": "qux",
https://github.com/microsoft/vscode/issues/84316#issuecomment-552014640
根据 October release of VS Code,现在可以通过 activityBar.activeBorder
和 activityBar.activeBackground
控制 Activity 栏活动元素的边框和背景。
但是将这些添加到我的 settings.json
似乎并没有更新活动元素:
"other.setting.foo": "bar",
"activityBar.activeBorder": "#8A2BE2",
"activityBar.activeBackground": "#FFB6C1"
"other.setting.baz": "qux",
activityBar.activeBorder
和 activityBar.activeBackground
需要嵌套在 workbench.colorCustomizations
:
"other.setting.foo": "bar",
"workbench.colorCustomizations": {
"activityBar.activeBorder": "#8A2BE2",
"activityBar.activeBackground": "#FFB6C1"
},
"other.setting.baz": "qux",
https://github.com/microsoft/vscode/issues/84316#issuecomment-552014640