DEV Community

Paul Preibisch
Paul Preibisch

Posted on

1

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

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs