📅  最后修改于: 2022-03-11 14:54:19.531000             🧑  作者: Mango
composer global require friendsofphp/php-cs-fixer
Then Add In settings.json vscode
"php-cs-fixer.executablePath": "phpcs.bat",
"php-cs-fixer.executablePathWindows": "phpcs.bat",
"php-cs-fixer.onsave": true,
//If you want to create a custom config for php-cs-fixer
//create a .php_cs file in this C:\Users\username\.vscode directory
"php-cs-fixer.config": "C:\\Users\\username\\.vscode\\.php_cs",