![]() ![]() Output should now include the 4 WordPress code standrds… The installed coding standards are MySource, PEAR, PHPCS, PSR1, PSR2, Squiz, Zend, WordPress, WordPress-Core, WordPress-Docs, WordPress-Extra and WordPress-VIP Now check what standards PHPCS can use… phpcs -i ![]() ![]() Open your Terminal application, you can pretty much run this from any location that you have permissions to read and write, your home or project directory will be ideal… php -r "copy('', 'composer-setup.php') " Here is a guide on how to get WordPress code standards using PHPCodesniffer on Visual Studio Code text editor using the WordPress code standards, this will be done via adding PHPCodesniffer via Composer, you can also add PHPCodesniffer via Pear or Homebrew, I used to have it running via Pear but have found it to be not as reliable Install Composer
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |