VScode does not highlight html close tags in PHP files

VSCode does not highlight HTML tags close after clicking on it in PHP files. Everything is fine in the HTML file. Example:

HTML file, oneclick on div

HTML file, oneclick in div (highligh open and close tag)

HTML file, doubleclick in div (counting all occurrences)

HTML file, doubleclick on div (counting all occurrences)

And the PHP file, it doesn’t matter - oneclick or doubleclick - it always takes into account all the events

And the PHP file, it doesn’t matter - oneclick or doubleclick - it always takes into account all the events

I'm not sure if this is a bug or function, but I would be very happy if I could find the html close tags in my php file (for example, in an html file). Especially in more complex projects.

+5
source share
1 answer

I have the same problem and it is very frustrating. As a workaround, I installed the Auto Rename Tag extension, and when I want to know which tag closes for the open tag, I change the div to diva and see which tag tag changes to diva , and then change it to div .

EDIT:

Alternatively, you can also set editor.renderIndentGuides to true in your user settings:

 { //some other settings "editor.renderIndentGuides": true } 

Here's what it looks like now:

Visual Studio Code

+3
source

All Articles