ikappas / vscode-phpcs

PHP CodeSniffer for Visual Studio Code
MIT License
128 stars 56 forks source link

Add support for onSave #125

Open BirkAndMe opened 6 years ago

BirkAndMe commented 6 years ago

It would be great to have an option, to run phpcs on save. So the phpcs.enable worked the same way as php.validate.run

drmonkeyninja commented 6 years ago

I was just about to raise an issue for the same request. I think this would be a really useful setting for people. It can be a little annoying seeing the code highlighted as breaking the standards when you're halfway through typing something out.

drmonkeyninja commented 6 years ago

It looks like there is already a merge request for this: https://github.com/ikappas/vscode-phpcs/pull/116.