更新时间:2022-12-06 22:24:14
在VS代码处
按 Ctrl + Shift + P
然后键入使用...设置文档格式
在列表末尾单击配置默认格式化程序...
现在,您可以从列表中选择自己喜欢的美容师.
Now you can choose your favorite beautifier from the list.
更新2021
如果 使用...设置文档格式..."
不再存在,请转到 文件
=> 首选项
=> 设置
,然后导航到 扩展名
=> Vetur
,然后滚动一点,然后您将看到 format>defaultFormatter:css
,现在您可以选择为不同的文件类型扩展名安装的所有文档格式化程序.
if "Format Document With..."
didn't exist any more, go to file
=> preferences
=> settings
then navigate to Extensions
=> Vetur
scroll a little bit then you will see format > defaultFormatter:css
, now you can pick any document formatter that you installed bofer for different file type extensions.