简体   繁体   English

Visual Studio代码删除标记突出显示

[英]Visual Studio Code remove tag highlight

I want to remove the highlighting of a tag when my cursor is on it. 我希望在光标位于其上时删除标记的突出显示。 For example Visual Studio Code shows a paragraph tag like this: [<]p[>] where I want it to show like this <p> . 例如,Visual Studio Code显示如下的段落标记: [<]p[>]我希望它显示为这样<p> See image for an example. 有关示例,请参见图片。

Example image 示例图片

In your settings.json put: 在你的settings.json中:

// Highlight matching brackets when one of them is selected. //选择其中一个时突出显示匹配的括号。

"editor.matchBrackets": false, “editor.matchBrackets”:false,

That will stop the behavior you see, but will do it for all supported languages (so also javascript for example). 这将阻止您看到的行为,但会为所有支持的语言(例如javascript)执行此操作。 You can change that setting for only html by : 您可以通过以下方式仅为html更改该设置:

"[html]": {
   "editor.matchBrackets": false
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio 代码扩展 - HTML 标记斜体 - Visual Studio Code Extension - HTML Tag Italic 关闭标记在 Visual Studio Code 中不起作用 - Close Tag not working in Visual Studio Code 如何 - 在 Visual Studio Code 中 - 使用标签(最好是 div)包装选择 - How to - in Visual Studio Code - wrap selection with a tag (div, preferably) 如何使用 HTML 越过 Visual Studio Code 中的自动完成标记? - How to move past the autocompleted tag in Visual Studio Code with HTML? 在每个标记属性上中断行并在Visual Studio HTML代码编辑器中保持它们对齐 - Break line on each tag attribute and keep them aligned in Visual Studio HTML code editor 如何在 Visual Studio 中删除特定的 HTML 标签 - How to remove specific HTML tags in Visual Studio Visual Studio 代码中的错误或设置不正确? - Bug or incorrect setting in the Visual Studio Code? 更改深色主题上的 Visual Studio 2013 摘要标签颜色 - Change Visual Studio 2013 Summary Tag Color on Dark Theme 在Visual Studio 2005中跳转到匹配标签的键盘快捷方式是什么? - What is the keyboard shortcut for jumping to the matching tag in Visual Studio 2005? Visual Studio 2010 Intellisense建议使用ScriptEngine关闭脚本标记 - Visual Studio 2010 Intellisense suggests ScriptEngine for closing script tag
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM