Cannot validate since no PHP executable is set. Use the setting 'php.validate.executablePath' to configure the PHP executable.无法使用PHP可执行的设置。设置php.validate。executablePath配置PHP可执行文件。


这段时间看网上说visual studio code (VSC)这款编辑器不错,今天下载下来想试试怎么样。

默认的黑色风格是现在的主流呀,总体看着还不错,而且我下载的时候没有选择直接就是中文版的,微软对中文的支持还是不错的。

【php】Cannot validate since no PHP executable is set.的解决方法
Cannot validate since no PHP executable is set

而且可以直接添加扩展,扩展还有“图标”显示,很贴心,很方便:

【php】Cannot validate since no PHP executable is set.的解决方法
Use the setting 'php.validate.executablePath' to configure the PHP executable

我首先创建了一个PHP文件,出来一个“信息”提示:无法使用PHP可执行的设置。设置php.validate。executablePath配置PHP可执行文件。

【php】Cannot validate since no PHP executable is set.的解决方法
Use the setting 'php.validate.executablePath' to configure the PHP executable

解决方法很简单:

1:直接点击“信息”提示左边的“settings.json”或者“文件”->“设置”打开settings.json设置文件。

【php】Cannot validate since no PHP executable is set.的解决方法
Use the setting 'php.validate.executablePath' to configure the PHP executable

2:从左边设置项定位到“PHP”,然后找到“php.validate.executablePath(PHP可执行文件地址)”,然后,把后面的地址换成你的php执行文件的地址。

【php】Cannot validate since no PHP executable is set.的解决方法
Use the setting 'php.validate.executablePath' to configure the PHP executable
【php】Cannot validate since no PHP executable is set.的解决方法
Use the setting 'php.validate.executablePath' to configure the PHP executable
【php】Cannot validate since no PHP executable is set.的解决方法
Use the setting 'php.validate.executablePath' to configure the PHP executable

相关文章:

  • 2022-01-17
  • 2022-03-01
  • 2022-12-23
  • 2021-12-11
  • 2022-02-14
  • 2022-12-23
猜你喜欢
  • 2021-07-03
  • 2022-12-23
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
  • 2021-06-24
相关资源
相似解决方案