Goto : method callers...navigate call stack..
it would be cool to be able to "goto" the "caller" of a method. similar to how you can go to implementations of a method. This would be a fast way to navigate back through the call stack? kind of a shortcut to find usages?
anyone besides me think this might me useful?
Please sign in to leave a comment.
On Thu, 29 May 2003 14:15:33 +0000 (UTC)
Trevor <trevor.samaroo@gs.com> wrote:
Already implemented. CTRL + ALT + H
How would this work for methods which have multiple callers (especially callers in different classes)? That is, how would IDEA know which one you want to go to? Seems like Find Usages is your only choice.
However, if you're only interested in the usages within a single class, you can simply do Highlight Usages in File and then Find Next (repeatedly).
nice! thanks!! geez, i need to review the keymaps/intellij docs before i post anymore doh! :)
Have you ever looked at the caller class hierarchy for a method that is
called by another, recursive, method? I just did on method decodeThing in a
class with code like this:
private Thing readContent(aThing) {
Thing root = decodeThing()
...
if (moreToDo) {
Thing child = readContent(root);
....
}
}
IDEA produced an apparently endlessly deep hierarchy of nested calls--I kept
expanding the call tree until I got tired of clicking on the little pluses.
This somehow feels like unreasonable behavior, although I'm not sure what it
should do instead.
A related solution is proposed in SCR 3419:
http://www.intellij.net/tracker/idea/viewSCR?publicId=3419