Fix for Vetur not formatting Vue file’s <template> html in VS Code

After installing Vetur and enabling Hit CMD + Shift + P in VSCode and start typing “User Settings” until you can select it from the dropdown under Preferences: User Settings. Add the following to your user profile.

"vetur.format.defaultFormatter.html": "js-beautify-html"

After some Google-fu, I eventually landed on this Github issue which bestowed the fix.

Join the Conversation

1 Comment

Leave a comment

Leave a Reply to Carlos Cancel reply

%d bloggers like this: