giovana
giovana

Reputation: 21

vscode it's highlighting all tags instead of opening and closing tags

when i click in a tag, my vscode highlights all the tags with the same name, but i want it to highlight only the matching tag. it used to do this normally, but one day it somehow changed and i don't know how to normalize

here's a screenshot of how it's working now, i clicked the div at line 11 and it's supposed to highlight the closing div tag at line 23, not all divs

[all tags highlighted instead of only the closing tag] (https://i.sstatic.net/rUavw9Xk.png)

i tried editing my settings by typing "editor.occurrencesHighlight", but i can only select "off", "singleFile" or "multiFile" (the "off" option doesn't highligh any of the tags and i already tried "true" or "false" but it doesn't accept, only those 3 options). also installed the highlight matching tag extension, but it's ugly and i don't want to use an extension for this

Upvotes: 2

Views: 190

Answers (1)

Agah Toruk
Agah Toruk

Reputation: 381

as far as I know, Visual Studio Code does not have this feature built in. But I solved this problem with this plugin: VSCode Highlight Matching Tag Extension

Here's how it works, I recommend you use it: VSCode Highlight Matching Tag Extension Working Screen Video (GIF)

Thanks...

Upvotes: -1

Related Questions