Auto use php-cs-fixer at save with PHPStorm and file watcher
- Open settings ( ctrl + alt + s)
- Menu file watchers
- Import watchers.xml
- Change settings like path for php and php-cs-fixer
- Enjoy ! PSRize at save.
NB: File watchers are linked to a specific project, so we have to re-import them for each project. External tools have IDE scope but we couldn't run them automaticaly - we could set a key bind.
Why is the programme php and not php-cs-fixer? I switched that and it worked