0
I am unable to configure the phpcs extension in vscode.
What I’ve already done
I already downloaded and installed the Composer
I installed the phpcs extension in vscode
I’ve been trying to set this up since sedo. When I write any line of code, a message appears at the bottom right corner:
"phpcs: Request Workspace/Configuration failed with message: Unable to locate phpcs. Please add phpcs to your global path or use Composer dependency manager to install it in your project locally."
What I wanted
I wanted to use phpcs in a specific project folder!
P.S: I bet it’s something extremely simple and I’m catching up to!
You used the argument global when installed via Poser?
– Valdeir Psr
yes, this one: Composer require "squizlabs/php_codesniffer="
– Lucas Inácio
Use
composer global require "squizlabs/php_codesniffer=*"
or inform the path in the configuration of pluginphpcs.executablePath
– Valdeir Psr
did and keeps asking to set up
– Lucas Inácio
Use which operating system?
– Woss
angry step with windows, I mean, windows use
– Lucas Inácio
@Lucasinácio Have you tried to indicate the installation location in the environment variables in Windows? https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/
– Valdeir Psr