当在Docker容器中设置php时,如何在vscode中设置php可执行路径php.validate.executablePath? [英] How to set php executable path php.validate.executablePath in vscode when php is set inside docker container?

查看:1484
本文介绍了当在Docker容器中设置php时,如何在vscode中设置php可执行路径php.validate.executablePath?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个基于docker的开发环境.

I have a development environment based in docker.

每次我打开VSCode时,都会收到此消息:

Everytime that I open VSCode I get this message:

由于未设置PHP可执行文件,因此无法验证.使用设定 "php.validate.executablePath"以配置PHP可执行文件.

Cannot validate since no PHP executable is set. Use the setting 'php.validate.executablePath' to configure the PHP executable.

有人知道在这种情况下如何设置php.validate.executablePath吗?

Somebody know how to set php.validate.executablePath in this case?

我不知道该怎么做.

推荐答案

以下是屏幕截图.

  • 别忘了逃避\
  • 您不必将其添加到路径中

这篇关于当在Docker容器中设置php时,如何在vscode中设置php可执行路径php.validate.executablePath?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆