如何通过" Ctrl + Click"来访问课程在Sublime Text 3中

时间:2015-07-07 17:35:55

标签: sublimetext3 sublimetext sublime-text-plugin

我以这堂课为例:

我可以使用哪个插件点击:

化PHPUnit_Framework_TestCase

上课?

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

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

非常感谢。

2 个答案:

答案 0 :(得分:2)

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

对于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

对于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

答案 1 :(得分:1)

单击要跳转的班级名称,然后按 f12