My configuration / steps to reproduce the error:
- Installed Visual Studio Code Version 1.22.1
- Installed PHP CS Fixer Globally by:
composer global require friendsofphp/php-cs-fixer
- Added Environment Variable:
C:\Users\khalil\AppData\Roaming\Composer\vendor\bin\php-cs-fixer
- Verified running following command (php-cs-fixer).
Output: Version: PHP CS Fixer 2.11.1 Grey Devil by Fabien Potencier and Dariusz Ruminski
- Installed Extension for vs-code: php cs fixer
Still getting the error:PHP CS Fixer: spawn php-cs-fixer ENOENT. executablePath not found
Note: I am on Windows 10 64bit