在vscode的Extensions模块搜索PHP Intelephense , PHP Server , Prettier , Laravel Blade formatter ,Laravel Blade Snippets 并安装
打开settings.json添加以下内容
{ "editor.formatOnSave": true, "editor.formatOnPaste": true, "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.formatOnType": true, "prettier.printWidth": 200, "[php]": { "editor.defaultFormatter": "bmewburn.vscode-intelephense-client" }, "[blade]": { "editor.defaultFormatter": "shufo.vscode-blade-formatter" }, "phpserver.phpConfigPath": "E:\\env\\php-7.4.29-Win32-vc15-x64\\php.ini", "phpserver.phpPath": "E:\\env\\php-7.4.29-Win32-vc15-x64\\php.exe", "php.validate.executablePath": "E:\\env\\php-7.4.29-Win32-vc15-x64\\php.exe", }
标签:格式化,vc15,vscode,x64,29,editor,php From: https://www.cnblogs.com/caroline2016/p/16944840.html