Making Atom Automatically Format While Saving PHP Files

dhtmldhtml Posts: 1,019

This task as simple as it is has once embarrassed me greatly.

I wont waste your time, setup atom on your machine.

Find and edit the configuration file ~/.atom/config.cson

And do this:


  executablePath: "/usr/local/bin/php-cs-fixer"

 executeOnSave: true

  rules: "-psr0,@PSR1,@PSR2,binary_operator_spaces,blank_line_before_return"

The end

Sign In or Register to comment.