Search code examples
sublimetext

Go to method declaration


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

Solution

  • Update (June 2016): @Erik255's answer is better now that Sublime Text 3 is out. Please upvote his. Since this is currently the accepted answer, these are the steps repeated:

    1. Use "File > Open Folder" or "Project > Add folder to project" (you may need to create a project first)
    2. F12 will jump to any symbol in the project

    Original answer:

    As of Sublime Text 2, you can use Goto anything (CTRL+R).

    (searches only within the current page)