How to set php executable path php.validate.executablePath in vscode when php is set inside docker container?

后端 未结 13 1493
既然无缘
既然无缘 2021-01-30 08:47

I have a development environment based in docker.

Everytime that I open VSCode I get this message:

Cannot validate since no PHP executable is set.

13条回答
  •  耶瑟儿~
    2021-01-30 09:19

    My case, I'm using Laragon, so you should search where is your php.exe.

    By VSCode just add.

    "php.executablePath": "C:\\laragon\\bin\\php\\php-7.2.19-Win32-VC15-x64\\php.exe"
    

    on settings.json.

提交回复
热议问题