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();
As Go to Declaration (including its Ctrl -click access) is one of the most frequently used commands, JetBrains Rider streamlines your navigation experience letting you use this command in navigation scenarios related to usages of the declared symbol, so you can invoke Go to Declaration even if your caret is already at ...
Press Ctrl+Shift+F11 or choose Navigate | Go to Type Declaration from the main menu . Alternatively, you can press Ctrl+Shift+A , start typing the command name in the popup, and then choose it there. If the command returns a single result, JetBrains Rider navigates directly there.
Go To Definition/Declaration You can navigate to the definition of a code symbol by right-clicking it in the editor and selecting Go To Definition, or by selecting F12. You can navigate to a declaration similarly by right-clicking to open the context menu, or by selecting Ctrl+F12.
Go to implementation To navigate to the super method, press Ctrl+U . To navigate to the implementation, press Ctrl+Alt+B .
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.
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:
Original answer:
As of Sublime Text 2, you can use Goto anything (CTRL+R).
(searches only within the current page)
There is a CTags package for Sublime Text that makes it possible to use a project level .ctags .tags
index file to jump to the definition of the symbol under the cursor by hitting ctrl+t twice: https://github.com/SublimeText/CTags
There is a great plugin called SublimeCodeIntel with the following features:
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