Reputation: 166
I want to be able to easily edit HTML tags together. There is a built-in option for this in Visual Studio Code.
It works fine for HTML files. Buy why not for php files? Does anybody know a work-around?
For example, let's say I wanted to change this div into a section. It should automatically select both opening tag and the closing tag.
Upvotes: 2
Views: 2251
Reputation: 980
For now VS Code doesn't handle PHP with editor.linkedEditing
.
But you can install Auto Tag Rename extension which will work for PHP files as well.
The extension will ignore certain file types if editor.linkedEditing = true
, so you can install it without any conflicts.
Upvotes: 1
Reputation: 339
Assuming you have html inside a PHP file. The simplest solution would be:
Upvotes: 1