I am facing this issue in Visual Studio Code. I have already tried reinstalling the phpcs extension but still facing this issue.
Unable to locat
"phpcs.standard": "PSR2",
"phpcs.enable": true,
"phpcs.executablePath": "/home/<username>/.config/composer/vendor/squizlabs/php_codesniffer/bin/phpcs",
"phpcs.autoConfigSearch": true
On Debian based systems run as root:
apt-get install php-codesniffer
I had the same problem and i did this to fix it in my windows:
You will Download the Composer (From here)
Go to Vs code and open your terminal and run this command
composer global require squizlabs/php_codesniffer
Go to (settings--> User Settings), then search PHP CodeSniffer
Scroll to Executatble Path and type
\Users\{user_name}\AppData\Roaming\Composer\vendor\bin\phpcs
and restart VS code.
This works For me, I hope it Works for you too :D
I think uninstalling it does not solve the issue.
i had the same issue. So,
it resolved the issue in my VS code.
You stated that you already uninstalled it, so i'm assuming your trying to get rid of the extension and error.
How to fix:
From the VS Code Docs:
Q: Where are extensions installed?
A: Depending on your platform, the global location is in the following folders:
Windows %USERPROFILE%\.vscode\extensions
Mac ~/.vscode/extensions
Linux ~/.vscode/extensions
I had the same problem with Drupal, the solutions is specify coding standards. So create phpcs.xml and enable the next options.