One thing I'm missing from SublimeText, is it's ability to highlight the currently selected elements closing tag.
For eg,
Because my cursor is in a div
, it highlights every occurrence of the word div
when it would be so much more useful, to rather highlight the closing div only.
Is this possible?
Had the same problem as OP, and finally found the solution!!
As it turns out, the same issue was only occurring to me when editing .PHP files.
Placing my cursor on any tag will trigger auto highlighting for any occurring tags that matched. See image below:
To turn this behaviour off, add this into your settings.json in VS code:
"editor.occurrencesHighlight": false,
To target specific languages, add this instead:
"[php]": {
"editor.occurrencesHighlight": true,
}
Result:
Hope this helps :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With