1. 程式人生 > >Visual Studio Code 提示"use the 'php.validate.executablePath'setting to configure the location of 'php

Visual Studio Code 提示"use the 'php.validate.executablePath'setting to configure the location of 'php

在使用vscode的時候經常在開啟php頁面的時候回有一個錯誤提示,“無法驗證,因為未設定任何php可執行檔案,請使用設定“php.validate.executablePath”配置php可執行檔案。

提示

或者還會跳出一個提示語“cannot validate the php file. the php program was not found. use the ‘php.validate.executablePaht’ setting to configure the location of php”

解決方案:

在選單欄依次開啟:檔案->首選項->設定(使用者設定)

在中間的 預設設定 搜尋php.validate.executablePath
然後把這裡的null設定成你本地的php.exe的地址,然後儲存。

這裡寫圖片描述

ok,然後問題解決了,
繼續搬磚把!!!