我已经在VSCode中安装了PhpStorm formatter(最新的更新),我们在我工作的电脑上安装了PhpStorm。我去了preferencessettings,我把 "Editor:default formatter "设置为VSCode中的PhpStorm formatter。
我的VSCode settings.json看起来是这样的。
{
"window.zoomLevel": 2,
"workbench.colorTheme": "Quiet Light",
"workbench.iconTheme": "vscode-simpler-icons",
"workbench.colorCustomizations": {
"editor.background": "#f3f3f3",
"sideBar.background": "#e9e9e9"
},
"workbench.statusBar.visible": true,
"files.autoSave": "afterDelay",
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"emmet.triggerExpansionOnTab": true,
"blade.format.enable": true,
"editor.defaultFormatter": "animus-coop.vscode-phpstorm-formatter",
"phpstormFormatter.ideBinPath": "C:\\Program Files\\JetBrains\\PhpStorm 2019.3.2\\bin",
"editor.fontSize": 15
}
但是当我按下 Alt+Shift+F 在VSCode中格式化代码,弹出一个错误说。
Failed to format this document.
有什么建议吗?