Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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>. See image for an example.

Example image

like image 418
Sebastiaan Avatar asked Nov 09 '17 11:11

Sebastiaan


People also ask

How do I remove the highlight line in VS Code?

For VsCode 2021 version users So I disabled it within the visual assist options. Uncheck the option: Highlighting->Highlight results of Quick Find and Find in Files.

How do I turn off highlighting in Visual Studio?

Could you please navigate to "Tools > Options > Text Editor > C/C++ > Advance", set "Disable Reference Highlighting" to "True" and try again.

How do I enable auto close tags in Visual Studio code?

File > Preferences > Keymaps, Search 'Auto close' and click on install. If it doesn't work, reload the plugin.


2 Answers

In your settings.json put:

// Highlight matching brackets when one of them is selected.

"editor.matchBrackets": false,

That will stop the behavior you see, but will do it for all supported languages (so also javascript for example). You can change that setting for only html by :

"[html]": {
   "editor.matchBrackets": false
}
like image 67
Mark Avatar answered Oct 11 '22 00:10

Mark


It appears that this has changed since the other answers were posted:

Value is not accepted. Valid values: "always", "near", "never".(1)

Use this instead:

"editor.matchBrackets": "never"

like image 1
ro͢binmckenzie Avatar answered Oct 11 '22 02:10

ro͢binmckenzie