Reputation: 790
Is there a way to make Visual Studio Code automatically format the content of XML tags?
I want to have an indent when pressing Enter or even when closing a tag:
Not as
but this way:
Upvotes: 20
Views: 60014
Reputation: 5579
The XML extension, from Red Hat, supports auto-indentation on enter, among many useful other features (like validation, code completion, autoclose tag...):
Upvotes: 27