在下图中,我实际上处于“重命名”状态,并且突出显示了某些内容,但没有突出显示。您会注意到也没有光标,因为它突出显示。这让我有点抓狂,因为我要么计算我移动了多少个左/右箭头键,要么知道我在哪里。我尝试了以下颜色,但这些颜色似乎都没有任何作用(在资源管理器中):
"workbench.colorCustomizations": {
"editorRuler.foreground": "#fc199a22",
"editor.selectionBackground": "#ab3beb3f",
"editor.selectionHighlightBackground": "#136460e3",
"editor.findMatchBackground": "#00cc44a8",
"editor.findMatchHighlightBackground": "#d0ff004d",
"scrollbarSlider.background": "#FC199A2c"
},
我尝试在 VS Code 的开发者控制台中检查该元素,但当它模糊出字段时,重命名就会关闭,我需要选择该元素来了解用于设置其样式的 CSS 类。
我在这里也没有看到资源管理器的“重命名”或突出显示颜色:https://code.visualstudio.com/api/references/theme-color#editor-colors
任何帮助将不胜感激。
最佳答案
您可以使用以下属性:
"selection.background" : "#FF0"
The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.
这种方法需要注意的是它是全局应用的,而不仅仅是资源管理器 View
关于visual-studio-code - 从资源管理器重命名时更改(或添加)VS Code 中的背景颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62976414/