install php cs fixer global windows code example
Example: PHP-cs-fixer: Executable Path Windows
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",