【发布时间】:2022-04-08 12:21:42
【问题描述】:
当我的光标在标签上时,我想删除标签的突出显示。例如,Visual Studio Code 显示这样的段落标记:[<]p[>] 我希望它显示为这样 <p>。示例见图片。
【问题讨论】:
标签: tags visual-studio-code highlight
当我的光标在标签上时,我想删除标签的突出显示。例如,Visual Studio Code 显示这样的段落标记:[<]p[>] 我希望它显示为这样 <p>。示例见图片。
【问题讨论】:
标签: tags visual-studio-code highlight
在你的 settings.json 中放:
// 选中其中一个括号时高亮显示匹配的括号。
“editor.matchBrackets”:假,
这将停止您看到的行为,但会为所有受支持的语言执行此操作(例如,javascript 也是如此)。您可以通过以下方式仅更改 html 的设置:
"[html]": {
"editor.matchBrackets": false
}
【讨论】:
试试这个
"editor.selectionHighlight": false
参考 -> https://www.samundra.com.np/disable-annoying-highlight-in-visual-studio-code/1666
【讨论】:
自从发布其他答案后,情况似乎发生了变化:
Value is not accepted. Valid values: "always", "near", "never".(1)
改用这个:
"editor.matchBrackets": "never"
【讨论】: