首页 > 开发 > 软件使用 > 正文

VS code提示"Cannot validate the php file. The php program was not found. Use the 'php.va

2016-04-15 09:00:12  来源: 网友分享

问题:VScode 打开php文件提示 :Cannot validate the php file. The php program was not found. Use the 'php.validate.executablePath' setting to configure the location of 'php'

解决方案:依次打开文件->首选项->用户配置(下图)

a.png

添加

"php.validate.executablePath": "D://Program Files (x86)//php-5.4//php.exe"