每 October release of VS Code ,现在可以通过 activityBar.activeBorder
控制事件栏事件元素的边框和背景。和 activityBar.activeBackground
.
但是将这些添加到我的 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
关于visual-studio-code - 如何在 VS Code 的事件栏中设置事件元素的样式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58780028/