首页 文章

VS代码:如何更改所选文本和选择/单词匹配的高亮显示?

提问于
浏览
5

视觉混淆:“选定文本”和“选择匹配”突出显示颜色

作为每日VS Code用户,我发现了一个关于此问题的早期封闭问题(Selection and selection matches highlight color #1636) - 即如果您实际选择了一些突出显示的文本,但突出显示的颜色几乎与用于匹配代码或相同单词的突出显示无法区分 .

本地用户设置 - 如CSS覆盖?

如果系统范围的高亮颜色(在系统范围内选择任何文本时)不是't portable to VS Code, I need a way to edit it. Perhaps in the theme' CSS或 - 最好 - 在用户生成的'override css'文件或其他内容(如VS Code的用户设置)中 . 这是在管道中吗?如果没有,有没有人有修复?

ATM改变所选文本的高亮颜色似乎是不可能的 . 我正在使用'黑暗',但无论哪个主题,问题都是一样的 .

1 回答

  • 7

    现在可以对vscode进行许多颜色自定义,包括选择选项:

    editor.selectionBackground: Color of the editor selection.
    editor.selectionHighlightBackground: Color for regions with the same content as the selection.
    editor.inactiveSelectionBackground: Color of the selection in an inactive editor.
    

    请参阅vscode theme color options,约可从v1.13获得 .

相关问题