Kenil Vasani 646 Questions 567 Answers 77 Best Answers 26 Points View Profile 2 Kenil Vasani Asked: December 18, 20202020-12-18T21:37:16+00:00 2020-12-18T21:37:16+00:00In: php Visual Studio Code: Unable to locate phpcs 2 I am facing this issue in Visual Studio Code. I have already tried reinstalling the phpcs extension but still facing this issue. Unable to locate phpcs Please add phpcs to your global path or use the composer dependency manager to install it in your project locally in Visual studio Code phpvisual-studio-code Share Facebook 1 Answer Voted Kenil Vasani 646 Questions 567 Answers 77 Best Answers 26 Points View Profile Best Answer Kenil Vasani 2020-12-18T21:36:30+00:00Added an answer on December 18, 2020 at 9:36 pm I had the same issue, I did the following to fix it: Install the phpcs by using composer with composer global require squizlabs/php_codesniffer Press Command + , (Click Code -> Preferences -> Settings) Select User Settings and locate ‘PHP CodeSniffer‘ Scroll to ‘Executatble Path‘ and put /Users/your-username/.composer/vendor/bin/phpcs This fixed the issue for me, I hope it does for you too. Cheers! 2 Share Share Share on Facebook Share on Twitter Share on LinkedIn Share on WhatsApp You must login to add an answer. Username or email* Password* Remember Me! Forgot Password?