I've got this class as an example:
Which plugin do I use to be able to click on:
PHPUnit_Framework_TestCase
And get to the class?
class PracticeTest extends PHPUnit_Framework_TestCase {
public function testHelloWorld() {
$greeting = 'Hello, World.';
$this->assertTrue($greeting === 'Hello, World.');
}
}
Right now I have to manually search for it. I know PHPStorm has this functionality and I believe Sublime must have a plugin for it.
Thanks a lot.
Click on class name that you want to jump and press f12.
Avalance pointed in the comments to a threat that hinted to SublimeCodeIntel.
And indeed SublimeCodeIntel allows for the behaviour I needed:
See here: https://github.com/SublimeCodeIntel/SublimeCodeIntel#using
The solution to jump to definition is this:
For 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
For 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
For 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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With