Reputation: 780
So Emmet's autocomplete for HTML tags is very useful but when I want to write a self closing tag like <br/>
it autocomplete it to <br>
. I understand that this isn't a big issue at all because it is completely supported, but I like being able to see directly that the tag is closed.
Is there a way to change this behavior in visual studio code?
Upvotes: 7
Views: 4204
Reputation: 780
Doing some more research I managed to find this setting to add into setting.json
"emmet.syntaxProfiles": {
"html": {
"self_closing_tag" : true
}
}
Now, writing br
will autocomplete to <br/>
Upvotes: 13