解決方法;更改setting.json配置文件: "[javascript]": { "editor.defaultFormatter": "vscode.typescript-language-features" }