1 year ago
#377654
Cohchi
PhpStorm run cmd on save
I have an environment under Windows 11 with WSL and Docker. I use PhpStorm. My projects use phpfmt.
I would like when I save any file to run composer fmt
command based on php-cs-fixer.
My project is in a WSL folder.
In PhpStorm settings ("Tools | File Watcher") I've added a new configuration on PHP files with Program: \\wsl$\Ubuntu\www\mywebsite\vendor\bin\php-cs-fixer.bat
, no arguments, no output
And in "PHP | Quality Tools" I've added a PHP CS Fixer configuration with \\wsl$\Ubuntu\www\mywebsite\vendor\bin\php-cs-fixer.bat
.
But when I click on "Validate" in my Quality Tools configuration, I get a message "Can not run PHP CS Fixer"
How do I do what I want?
composer-php
phpstorm
php-cs-fixer
0 Answers
Your Answer