DEV Community

Paul Preibisch
Paul Preibisch

Posted on

PhpStorm Shortcut for php-cs-fixer

PhpFixer has become an essential tool to ensure our team's coding standards are kept in line.

Rather than run "/vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix" each time from the command line before a commit

I configured the command as an "External Tool" called "fix" in PhpStorm, and assigned it to 'ctrl-alt-shift-l" in PhpStorm.

Now all I need to do is press the hotkey combination while programming to clean up my code before a commit!

Good luck!

Image description

Image description

Image description

Oldest comments (0)