I installed the vetur, and everything seemed good. But when I tried to format a .vue file, it seemed strange.

Panel -> Output -> Vue Language Server which said vetur initialized.<script lang="ts"/>.UPDATE: I found out the plugin prettier and installed it and make some setting, and then the first problem was fixed. But it did not fix the second problem.=。=
That's just how prettier formats the code - in this specific case, it forces a lot of the arguments on new lines because it enforces a max line-length, and since your code is nested a couple of levels, the remaining allowed space is small.
If you don't like that, don't use prettier.
Since you claim to have read the docs: Have you tried using the internal vscode-typescript for formatting instead?
@LinusBorg I tried, and got the same result.
And I made the value of the setting prettier.printWidth as 160, and everything is ok.
Thanks for your patience!
Close #628
Most helpful comment
That's just how prettier formats the code - in this specific case, it forces a lot of the arguments on new lines because it enforces a max line-length, and since your code is nested a couple of levels, the remaining allowed space is small.
If you don't like that, don't use prettier.
Since you claim to have read the docs: Have you tried using the internal vscode-typescript for formatting instead?
https://vuejs.github.io/vetur/formatting.html