为什么在vs代码中显示“php executable not set”?

问题描述 投票:-4回答:1

VS代码通知错误:

enter image description here

我想用php最新版本7.我安装了xamp最新版本。现在在vs代码中显示未设置php可执行文件。我该如何解决?

php visual-studio-code laravel-5.6 vscode-settings
1个回答
0
投票

尝试:

File -> Presences -> User Settings

现在你可以看到2个窗口。在右侧窗口中添加以下代码:

{
    "php.validate.executablePath": "path",
    "php.executablePath": "path"
}

在这里Pathis php.exe的位置。示例:C:\\wamp64\\bin\\php\\php7.0.4\\php.exe

© www.soinside.com 2019 - 2024. All rights reserved.