如何更改命令面板快捷键绑定前景文本颜色?
How do I change the Command Palette shortcut keybindings foreground text color?
如何在不将基本主题颜色更改为“vs-dark”的情况下更改键盘快捷键下方的文本颜色?我不确定使用下面 link 中的哪一个。我意识到一些基色还不能通过主题颜色改变;但是,我想确定一下。
https://code.visualstudio.com/api/references/theme-color
这些正在添加到 v1.56。参见 https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_56.md#keybinding-label-colors
New theme colors
Keybinding label colors
Keybinding labels are shown when there is a keybinding associated with
a command. Usages of the keybinding label include (but are not limited
to):
- The Command Palette
- The Keyboard Shortcuts editor
- The Keyboard Shortcuts recorder modal
- The "feature contribution" section of an extension's marketplace page
The following customizations are available:
keybindingLabel.background
: Keybinding label background color.
keybindingLabel.foreground
: Keybinding label foreground color.
keybindingLabel.border
: Keybinding label border color.
keybindingLabel.bottomBorder
: Keybinding label border bottom color.
在你的settings.json中:
"workbench.colorCustomizations": {
"keybindingLabel.foreground": "#fff", // text color
"keybindingLabel.background": "#333"
}
如何在不将基本主题颜色更改为“vs-dark”的情况下更改键盘快捷键下方的文本颜色?我不确定使用下面 link 中的哪一个。我意识到一些基色还不能通过主题颜色改变;但是,我想确定一下。
https://code.visualstudio.com/api/references/theme-color
这些正在添加到 v1.56。参见 https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_56.md#keybinding-label-colors
New theme colors
Keybinding label colorsKeybinding labels are shown when there is a keybinding associated with a command. Usages of the keybinding label include (but are not limited to):
- The Command Palette
- The Keyboard Shortcuts editor
- The Keyboard Shortcuts recorder modal
- The "feature contribution" section of an extension's marketplace page
The following customizations are available:
keybindingLabel.background
: Keybinding label background color.keybindingLabel.foreground
: Keybinding label foreground color.keybindingLabel.border
: Keybinding label border color.keybindingLabel.bottomBorder
: Keybinding label border bottom color.
在你的settings.json中:
"workbench.colorCustomizations": {
"keybindingLabel.foreground": "#fff", // text color
"keybindingLabel.background": "#333"
}