visual-studio-code - 从资源管理器重命名时更改(或添加)VS Code 中的背景颜色

标签 visual-studio-code

在下图中,我实际上处于“重命名”状态,并且突出显示了某些内容,但没有突出显示。您会注意到也没有光标,因为它突出显示。这让我有点抓狂,因为我要么计算我移动了多少个左/右箭头键,要么知道我在哪里。我尝试了以下颜色,但这些颜色似乎都没有任何作用(在资源管理器中):

"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

任何帮助将不胜感激。

enter image description here

最佳答案

您可以使用以下属性:

"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

selection image

关于visual-studio-code - 从资源管理器重命名时更改(或添加)VS Code 中的背景颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62976414/

相关文章:

javascript - VS Code 中自动格式的左括号前没有空格

python - VSCode - 在调试时显示图像

javascript - 如何在 VS Code 上设置 AngularJS 智能感知

c# - 为什么 Visual Studio Code 没有针对 Unity 关键字(例如 transform 或 Vector3)的智能感知?

javascript - 为什么 VS Code 显示 JSDoc 中 var 的类型信息,而不显示 JavaScript 中其他成员的类型信息?

visual-studio-code - 使代码折叠图标始终显示在Visual Studio Code中

docker - 如何使用 ssh 在本地连接到 VSCode 容器?

python - 在 VS Code 中调试 PIP 包中的 Python 代码

linux - 无法连接到 vscode 服务器,scp : No such file or directory

visual-studio-code - VSCode 更漂亮的 printWidth