如何在VSCode的keybindings.json中修改单词边框颜色?
VSCode 修改单词边框颜色的配置方法
首先明确:keybindings.json是用于配置快捷键的文件,修改编辑器颜色(包括单词边框)需要在settings.json中操作。
根据你提供的截图和现有配置,分以下几种情况处理:
如果是拼写错误单词的边框:
添加或修改内置拼写检查的边框配置:"editor.spellCheck.border": "#你的颜色代码"如果是代码诊断信息(错误/警告/提示)的单词边框:
你当前已经配置了editorError.border等项,若未生效,可补充边框宽度配置确保显示:"editorError.borderWidth": "1px", "editorWarning.borderWidth": "1px", "editorInfo.borderWidth": "1px"你的现有诊断颜色配置如下:
"editorError.border": "#E06c75", "editorError.foreground": "#E06c75", "editorError.background": "#E06c7580", "editorWarning.border": "#e5c07b", "editorWarning.foreground": "#e5c07b", "editorWarning.background": "#e5c07b60", "editorInfo.border": "#98c379", "editorInfo.foreground": "#98c379",如果是选中单词的高亮边框:
添加选中高亮边框的配置:"editor.selectionHighlightBorder": "#你的颜色代码"
内容的提问来源于stack exchange,提问作者Tao Tao
相关产品推荐
相关产品推荐

