This morning I came across a pull request from Jeremy Romey to add a new plugin to Sublime Text 2 that supported the PHP Coding Standards Fixer. Since this is right up my street I took a look at the code and immediately wanted to port it to the Sublime Phpcs plugin. Luckily Jeremy was also happy with this, and throughout the day I’ve been managed to release 4.0 and 4.1 which adds the same support that Jeremy was going to add.
So now, you can right click folders/files in the side bar and use the PHP Coding Standards Fixer application to fix “most” of the issues you would encounter.
You can also fix an open file using the command palatte (or right click on the file in the editor):
And all of these ways to execute the application will result in the output being shown in the “Quick Panel”
Currently, if the application does not fix any files, there is no output. This potentially needs to change, and I will be looking into this in the coming days. It would also be nice for you to be then able to select the file in the Quick Panel and open that in the editor. Again, currently you cannot do this, but I am looking into it (GH-25)
Big thanks to Jeremy for initially implementing this.
For more information about this plugin, visit the overview page here