1. VS Code扩展搜索:Prettier - Code formatter ,并安装2. 输入快捷键: Ctrl+, 搜索Editora.勾选Format On Saveb.设置 Prettier - Code formatter 为默认优化插件