Prettier格式化HTML标签不换行方法

在项目根目录配置一个.prettierrc文件,属性printWidth为其设置每行最大换行字数。

效果前:

 

 效果后:

 

posted @ 2022-03-11 15:34  碎月  阅读(3960)  评论(0编辑  收藏  举报