I get this error in visual studio:
phpcs: The "WordPress" coding standard is not installed. Please review your configuration an try again.
In settings.json
:
"php.suggest.basic": true,
"php.validate.run": "onSave",
"php.validate.executablePath": "/usr/bin/php",
"phpcs.enable": true,
"phpcs.executablePath": "/Users/xxx/.composer/vendor/bin/phpcs",
"phpcs.standard": "WordPress"
In terminal:
$ which phpcs
$ /Users/xxx/.composer/vendor/bin/phpcs
$ which php
$ /usr/bin/php
$ phpcs --config-show
Using config file: /Users/xxx/.composer/vendor/squizlabs/php_codesniffer/CodeSniffer.conf
installed_path: /Users/xxx/.composer/vendor/wp-coding-standards/wpcs
What am I doing wrong?