Is there any VS Code extension that can format PHP to WordPress coding standard on save?
Is there any VS Code extension that can format PHP to WordPress coding standard on save?
@heybran yes!
https://github.com/WordPress/WordPress-Coding-Standards gives you phpcs rules. And then you can use one of several VS Code extensions which adds linters that use phpcs.
Several other bits and pieces here: https://deliciousbrains.com/vs-code-wordpress/
Quick and Dirty: https://gist.github.com/siddik-web/6c86c2f6db149292a611d7254e0e5c7b