当文档保存在 VS Code 中时,我尝试启用 Prettier 扩展来格式化 JSX 代码,但安装该扩展后对我不起作用。我尝试使用下面列出的方法进行修复:
visual-studio-code prettier
prettier ×1
visual-studio-code ×1