André Amorim

Crafting Web Experiences

//

wpcs

Go back to /notes?

  • Easier: WPCS Workspace Based

    1. composer.json (composer.lock must be exist) 2. Install the VS Code Extension PHP Sniffer & Beautifier: https://marketplace.visualstudio.com/items?itemName=ValeryanM.vscode-phpsab

  • GLOBAL: PHPCS, PHPCBF, and WPCS Coding Standards with VS Code

    # Download using curl # Give the execution permissions # Install WordPress Coding Standards # Apply the new coding standards # Update the default standard # Install the VS Code Extension PHP Sniffer & Beautifier: https://marketplace.visualstudio.com/items?itemName=ValeryanM.vscode-phpsab # Add these settings to the settings.json file of VS Code