Is there any VS Code extension that can format PHP to WordPress coding standard on save?

#WordPress

@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

GitHub - WordPress/WordPress-Coding-Standards: PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions

PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions - WordPress/WordPress-Coding-Standards

GitHub
@richtape Amazing, thanks. I’ll try and see if I can get the format on save to work.
@richtape Able to get the format on save to work on VS Code, thanks again.