如何在 Sublime Text 3 中通过“Ctrl+Click”访问类

Lov*_*ess 5 sublimetext sublimetext3 sublime-text-plugin

我以这个类为例:

我使用哪个插件才能点击:

PHPUnit_Framework_TestCase

并去上课吗?

class PracticeTest extends PHPUnit_Framework_TestCase {
    public function testHelloWorld() {
        $greeting = 'Hello, World.';
        $this->assertTrue($greeting === 'Hello, World.');
    }
}
Run Code Online (Sandbox Code Playgroud)

现在我必须手动搜索它。我知道 PHPStorm 有这个功能,我相信 Sublime 一定有一个插件。

多谢。

Lov*_*ess 3

Avalance 在评论中指出了向SublimeCodeIntel暗示的威胁。

事实上 SublimeCodeIntel 允许我需要的行为:

请参阅此处: https: //github.com/SublimeCodeIntel/SublimeCodeIntel#using

跳转到定义的解决方案是这样的:

对于 Mac OS X:

Jump to definition = Control+Click
Jump to definition = Control+Command+Alt+Up
Go back = Control+Command+Alt+Left
Manual Code Intelligence = Control+Shift+space
Run Code Online (Sandbox Code Playgroud)

对于Linux:

Jump to definition = Super+Click
Jump to definition = Control+Super+Alt+Up
Go back = Control+Super+Alt+Left
Manual Code Intelligence = Control+Shift+space
Run Code Online (Sandbox Code Playgroud)

对于 Windows:

Jump to definition = Alt+Click
Jump to definition = Control+Windows+Alt+Up
Go back = Control+Windows+Alt+Left
Manual Code Intelligence = Control+Shift+space
Run Code Online (Sandbox Code Playgroud)