[PHP] 配置vscode的语法检测消除提示Cannot validate since no PHP executable is set
程序员文章站
2022-03-04 09:10:56
默认下载完vscode什么都不做,会提示一下信息Cannot validate since no PHP executable is set. Use the setting 'php.validate.executablePath' to configure the PHP executable. ......
默认下载完vscode什么都不做,会提示一下信息
cannot validate since no php executable is set. use the setting 'php.validate.executablepath' to configure the php executable.
打开文件->首选项->setting,把php的执行路径填进去,前提是本机已经安装了php程序
{
"workbench.sidebar.location": "left",
"php.suggest.basic": false,
"php.validate.executablepath":"/usr/bin/php"
}
"php.suggest.basic": false是禁用内置的php支持
要禁用内置的php智能完成功能,以支持来自已安装的php扩展名的建议,请取消选中“ php”>“ suggest:basic”(php.suggest.basic在settings.json文件中设置为false)。