Rumah > pembangunan bahagian belakang > tutorial php > Visual Studio Code提示"Use the 'php.validate.executablePath' setting to configure the locat.

Visual Studio Code提示"Use the 'php.validate.executablePath' setting to configure the locat.

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Lepaskan: 2016-06-20 12:25:47
asal
1939 orang telah melayarinya

Visual Studio Code提示"Use the 'php.validate.executablePath' setting to configure the location of 'php'"的解决办法

Jun 14,2016 in 代码 lang read (4)

安装Visual Studio 2015时,顺便下载了Visual Studio Code,试用了一下感觉功能上还是比较完善的,和Sublime Text很像。但在打开php文件的时候,总是弹出提示信息:

Cannot validate the php file. The php program was not found. Use the 'php.validate.executablePath' setting to configure the location of 'php'
Salin selepas log masuk

意思是无法找到php程序,无法验证php文件。使用 php.validate.executablePath 配置项指定php程序的位置。

配置步骤也很简单:

1、在菜单依次打开“文件”-“首选项”-“用户设置”

2、在左侧“默认设置”定位到 php.validate.executablePath (我这个版本的Visual Studio Code在662行),将配置信息复制到右侧setting.json中,并配置php.exe路径下。保存即可。

"php.validate.executablePath":"N://upupw//PHP5//php.exe",
Salin selepas log masuk

最后由 Kent 编辑于2016年06月14日 22:36

Kenyataan Laman Web ini
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Tutorial Popular
Lagi>
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan