Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jump to method call from method definition in eclipse [Java perspective]

(In eclipse) We have a shortcut key to jump to method definition from wherever the method is called, i.e. by using F3. But what if I am currently on the method definition and I want to go that location where the method is called or used. Any shortcut for this?

like image 590
Ayush Goyal Avatar asked Sep 10 '12 09:09

Ayush Goyal


People also ask

How do I jump a method in Eclipse?

You can open any method or type in your workspace using the "Open Type" wizard or the "Open Method" wizard. -Or- press Ctrl+Shift+T (for a type) or Ctrl+Shift+M (for a method). The "Open Type/Method" dialog will appear. If a type/method was previously selected in the editor or outline views, it will be displayed.

How do I move from one method to another in Eclipse?

Another way to move between methods is to use two features called Go To Next Member and Go To Previous Member. When you press Ctrl+Shift+Down, Eclipse moves the cursor to the next method in the class. Pressing Ctrl+Shift+Up moves to the previous method.

How do I go back to caller method in Eclipse?

Press Alt + Left Arrow and Alt + Right Arrow like you would in a web browser.

How do you find where a method is called in Eclipse?

Select mymethod() and press ctrl + alt + h . To see some detailed Information about any method you can use this by selecting that particular Object or method and right click. you can see the "OpenCallHierarchy" ( Ctrl + Alt + H ).


1 Answers

You can try Ctrl+Shift+G which is a equivalent to find references.

or Ctrl+Alt+H which brings up call hierarchy.

like image 94
Bharat Sinha Avatar answered Sep 28 '22 00:09

Bharat Sinha