扩展“Prettier - 代码格式化程序"无法格式化 - (Mac v8.0) [英] Extension 'Prettier - Code Formatter' Cannot Format - (Mac v8.0)

查看:187
本文介绍了扩展“Prettier - 代码格式化程序"无法格式化 - (Mac v8.0)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

遇到 Prettier 无法格式化的问题.我选择了保存格式,默认格式设置为使用 Prettier.昨天工作正常,现在在保存或运行格式文档命令时没有格式化.没有更改任何设置,我确实尝试卸载并重新安装 prettier.强制格式化文档也返回错误.

Having a problem with Prettier not being able to format. I have format on save selected, the default format is set to use Prettier. Was working fine yesterday and now it is not formatting on save or when I run the format document command. No settings were changed, I did try uninstalling and reinstalling prettier. Force format document also returns an error.

错误

设置页面 1

设置页面 2

已安装版本

强制格式错误

推荐答案

v8.0好像坏了,解决方案是降级到v7.1.1.

v8.0 seems to be broken, the solution was to downgrade to v7.1.1.

发现这里有问题:https://github.com/prettier/更漂亮的 vscode/issues/2029

v8​​.1 已发布,问题现已修复.

v8.1 is out and the issue is now fixed.

这篇关于扩展“Prettier - 代码格式化程序"无法格式化 - (Mac v8.0)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆