vscode快速格式化

安装

先在vscode中安装prettier插件
image

配置格式规则

我们可以在官网中在线配置:https://www.prettier.cn/
image
image

使用配置

现在vscode建立.prettiercc文件。把复制的内容粘贴进去
image
然后右键设置prettier为格式化规则
image
后面就可以使用右键或者快捷键格式化文件了

posted @ 2025-04-29 20:51  韩熙隐ario  阅读(67)  评论(0)    收藏  举报