Visual Studio Code: Unable to locate phpcs

后端 未结 15 1992
梦毁少年i
梦毁少年i 2021-02-01 01:56

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

15条回答
  •  攒了一身酷
    2021-02-01 02:24

    From a GitHub comment.

    If someone still needs help about this "Unable to locate phpcs ..." error message, try this: you just need to install phpcs globally via Composer.

    1. Install Composer from this resource if you don't have it,
    2. After Composer is installed, open a command prompt wherever you want and run this command

      composer global require squizlabs/php_codesniffer
      

提交回复
热议问题