Can't format .vue files. I'm trying to format .vue files from a Vue project made using CLI.
Error "There is no selection formatter for 'vue'-files installed." appears.
It does not work when you save the file either



Sam problem on Win 10.
We only have a whole document formatter, no range formatter.
Added this line to get html formatting to work
{
// Default formatter for <template> region
"vetur.format.defaultFormatter.html": "prettier",
}
@martinnaughton I get "value is not accepted"; I can only choose None and js-beautify-html. (prettier installed)
I resolved my problem with the followed code in the Visual studio code setting
{
"vetur.format.defaultFormatter.html": "js-beautify-html"
}
document formatting works with the vetur pack. Lock at your shortcuts
Specifying formatter for only SCSS should be an option. It works when I set
"vetur.format.defaultFormatter.html": "js-beautify-html"
even though I don't have it installed.
Most helpful comment
Added this line to get html formatting to work