How can I resolve phpcs and vscode issue on Windows

837 Views Asked by At

I've been battling to get PHP CodeSniffer to work on VSCode, always unable to locate phpcs, which i've installed globally. Adding the executable path to phpcs errors with:

failed to open stream: No such file of directory in /cygdrive/c/Users/{Username}/local_sites/{site_name}/public/c:\cygwin64\home\{username}\.composer\vendor\squizlabs\php_codesniffer\bin\phpcs which is a concatenation of my local web server home directory and the executable path.

I think I need to use a symlink, but I'm unsure.

0

There are 0 best solutions below