安装插件,php intellisense
安装后还要配置一下PHP的运行路径
-
打开扩展
![](http://upload-images.jianshu.io/upload_images/6323555-c7e9ae508f3be9b1.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/495/format/webp)
- 输入 PHP IntelliSense
![](http://upload-images.jianshu.io/upload_images/6323555-bd6b9662c25907ee.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/502/format/webp)
- 安装
![](http://upload-images.jianshu.io/upload_images/6323555-0808cb80a118b135.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/682/format/webp)
- 文件 - 首选项 - 设置 - 扩展 - PHP IntelliSense - 在 settings.json 中编辑
![](http://upload-images.jianshu.io/upload_images/6323555-78bc8df7db482c8a.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/896/format/webp)
- 配置项中加入 php 可执行文件路径
"php.executablePath":"D:/Work/XAMPP/php/php.exe"
- 重新启动 VSCode
安装插件,php intellisense
安装后还要配置一下PHP的运行路径
打开扩展
"php.executablePath":"D:/Work/XAMPP/php/php.exe"
转载于:https://www.cnblogs.com/wordblog/p/11370234.html