欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

visual studio code 安装 PHP IntelliSense 报错

程序员文章站 2022-06-17 09:41:08
...

vs code (版本1.28)安装完PHP IntelliSense , 报错 :
PHP executable not found. Install PHP 7 and add it to your PATH or set the php.executablePath setting .

设置完环境变量依然报错 ;

在vs code 用户设置中添加这两行 :

{
    "php.validate.executablePath": "C:\\wamp64\\bin\\php\\php7.0.4\\php.exe",
    "php.executablePath": "C:\\wamp64\\bin\\php\\php7.0.4\\php.exe"
}

不再报错

参考链接: https://*.com/questions/40287927/php-executable-not-found-install-php-7-and-add-it-to-your-path-or-set-the-php-e?rq=1