Visual Studio 代码移除标签高亮
Visual Studio Code remove tag highlight
我想取消光标在标签上时突出显示的标签。例如 Visual Studio 代码显示这样的段落标记:[<]p[>]
我希望它像这样显示 <p>
。示例见图片。
Example image
在你的 settings.json 中输入:
// Highlight matching brackets when one of them is selected.
"editor.matchBrackets": false,
这将停止您看到的行为,但会为所有支持的语言执行此操作(例如 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"
我想取消光标在标签上时突出显示的标签。例如 Visual Studio 代码显示这样的段落标记:[<]p[>]
我希望它像这样显示 <p>
。示例见图片。
Example image
在你的 settings.json 中输入:
// Highlight matching brackets when one of them is selected.
"editor.matchBrackets": false,
这将停止您看到的行为,但会为所有支持的语言执行此操作(例如 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"