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
open the project in the terminal and run this command
composer global require squizlabs/php_codesniffer
Hope that helps!