Go to method declaration

Roman Newaza picture Roman Newaza · Mar 7, 2012 · Viewed 93k times · Source

Is it possible to got to PHP method declaration through method call in Sublime Text?

// 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();

Answer

Erik255 picture Erik255 · Sep 30, 2013

Sublime 3 is the answer! It has a goto_definition function build in which works fine as long as you have a project with your source folder added (so that they can get indexed). I use it with scala+lift, PHP, Python.

Per default it is bound to F12 and without project setup it searches only in the actual file.

It was the missing feature to leave Eclipse and Netbeans.