Closed pingren closed 5 years ago
Formatting is not working automatically when saving a .vue file. (Vetur 0.18.1)
.vue
Running Format Document manually, VSCode will ask user to pick the formatter
It seems like VSCode won't use prettier as the default formatter.
Vetur support vetur.format.enable since 0.17.1.
vetur.format.enable
Changing it to false will solve this issue.
Setting below is also helpful, VSCode March 2019 (version 1.33) required
"[vue]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }
Thanks!
Formatting is not working automatically when saving a
.vue
file. (Vetur 0.18.1)Running Format Document manually, VSCode will ask user to pick the formatter
It seems like VSCode won't use prettier as the default formatter.
Vetur support
vetur.format.enable
since 0.17.1.Changing it to false will solve this issue.
Setting below is also helpful, VSCode March 2019 (version 1.33) required