vuejs / language-tools

⚡ High-performance Vue language tooling based-on Volar.js
https://marketplace.visualstudio.com/items?itemName=Vue.volar
MIT License
5.82k stars 396 forks source link

Formant Document With Volar something happens seem wrong! #1217

Closed shiwanjun1995 closed 2 years ago

shiwanjun1995 commented 2 years ago

1、Volar formats an HTML tag with many attributes in as few lines as possible. Look at bellow:

截屏2022-04-20 下午8 20 06

the code left(prettier) looks better, the code right(volar) looks bad. 大白话:左边的看起来更好,右边的看起来有点糟。

2、When enter some enters or spaces, then format with volar, it seems not come into force?

截屏2022-04-20 下午8 30 41

大白话:键入几个enter键,也就是换行,发现这几个换行经过volar的格式化之后,竟然没有去掉?

johnsoncodehk commented 2 years ago

Duplicate of #1174