7

vscode 对 PHP 函数跳转支持是不是还不够完善,或者有好的插件推荐吗?

 2 years ago
source link: https://www.v2ex.com/t/799195
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
vscode 对 PHP 函数跳转支持是不是还不够完善,或者有好的插件推荐吗?

V2EX  ›  Visual Studio Code

vscode 对 PHP 函数跳转支持是不是还不够完善,或者有好的插件推荐吗?

  justrand · 10 小时 35 分钟前 · 569 次点击

目前按照教程配置好了“PHP Intelephense”插件,但是发现有部分函数无法跳转,目前不清楚是 ci 框架问题,还是说对部分方法他就是无法跳转?
目前是拿 CodeIgniter3.X 框架测试的,同样的情况在 sublime 和其他 ide 我试了都可以跳转道函数定义的地方,这块不知有没有解决方法?

56c72b544a4425e3b5e370ed1332f6d.png

9 条回复    2021-09-01 17:29:59 +08:00

QlanQ

QlanQ   10 小时 5 分钟前

给 weblcome_model 定义类型,如果你的 PHP 版本比较高,建议给 方法都定义好返回值

justrand

justrand   10 小时 2 分钟前

@QlanQ 有定义返回值的,php 版本是 7.3

justrand

justrand   10 小时 1 分钟前

@QlanQ 现在问题是,我不清楚他在什么情况下不支持跳转,因为大部分函数可以跳转的

yangliuan

yangliuan   6 小时 36 分钟前

框架的项目都需要用 composer 安装 ide 工具 扩展包,像 laravel 框架需要安装 barryvdh/laravel-ide-helper swoole 框架需要安装 wudi/swoole-ide-helper

shellic

shellic   6 小时 27 分钟前

为什么不用 PhpStorm

justrand

justrand   6 小时 11 分钟前

@shellic 想试试 vscode 。支持下开源

zjsxwc

zjsxwc   3 小时 13 分钟前

我对各种 php ide 的体验,
phpstorm 最强,优化最好,
netbeans 能干,但是碰到大项目会有点卡顿,插件少一点,
vscode 、emacs 、vim 、st 之流都是样子货,谁用谁自虐,谁想不开就去用。

关于   ·   帮助文档   ·   FAQ   ·   API   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   2421 人在线   最高记录 5497   ·  

创意工作者们的社区

World is powered by solitude

VERSION: 3.9.8.5 · 17ms · UTC 12:43 · PVG 20:43 · LAX 05:43 · JFK 08:43
♥ Do have faith in what you're doing.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK