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.

One Reply to “Fix for Vetur not formatting Vue file’s <template> html in VS Code”

What do you think?