PhpStorm WSL, Format on Save using PhpCsFixer File Watcher File type: PHP Program: wsl Arguments: php /ubuntu/path/to/php-cs-fixer fix /ubuntu/path/to/project/$/FileRelativePath$ Tools > Actions on Save Select phpcsfixer (File watcher)