gpt4 book ai didi

sublimetext - 转到方法声明

转载 作者:行者123 更新时间:2023-12-03 05:39:53 27 4
gpt4 key购买 nike

Sublime Text 中是否可以通过方法调用来获取 PHP 方法声明?

// pressing some keys combination should navigate me
// to the method declaration. If it's defined in some other file,
// the file should be opened.
$foo->doSomething();

最佳答案

Sublime 3 就是答案!它有一个 goto_definition 函数构建,只要您有一个添加了源文件夹的项目(以便它们可以被索引),该函数就可以正常工作。我将它与 scala+lift、PHP、Python 一起使用。

默认情况下,它绑定(bind)到F12,如果没有项目设置,它仅在实际文件中搜索。

这是 Eclipse 和 Netbeans 所缺少的功能。

关于sublimetext - 转到方法声明,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9594475/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com