[英]How to Configure PHP executable in Visual Studio Code where my setup is Vagrant Ubuntu 16.06 in Windows 10 Host machine
I have vagrant setup in my machine and I am using Homestead 7 Laravel Box for PHP development.我的机器上有 vagrant 设置,我正在使用 Homestead 7 Laravel Box 进行 PHP 开发。 My Host computer is running Windows 10.我的主机运行的是 Windows 10。
I am using Visual Studio Code 1.15.1.我使用的是 Visual Studio Code 1.15.1。
My PHP executable is not set in Visual Studio setting.我的 PHP 可执行文件未在 Visual Studio 设置中设置。 How can I configure PHP executable in my current development environment?如何在我当前的开发环境中配置 PHP 可执行文件? Thanks.谢谢。
To set it in Visual Studio Code, do the following要在 Visual Studio Code 中设置它,请执行以下操作
php.validate.executablePath = null,
.查找设置php.validate.executablePath = null,
。php.exe
.将其指向php.exe
的位置。 (eg C:\\php\\php.exe). (例如 C:\\php\\php.exe)。User Settings
pane on the right side then save.最后,将其复制到右侧的“ User Settings
窗格中,然后保存。php.validate.executablePath = "C:\\php\\php.exe",
输出应如下所示: php.validate.executablePath = "C:\\php\\php.exe",
我设法通过在每个目录之间使用 2 个斜杠来解决这个问题,如下所示...
"php.validate.executablePath": "C:\\wamp64\\bin\\php\\php7.1.9\\php.exe"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.