Eclipse keyboard shortcut: goto function name

后端 未结 10 2153
生来不讨喜
生来不讨喜 2020-12-12 23:29

Suppose I know a function name, but I don\'t know which file it\'s declared in. What Eclipse keyboard shortcut can take me to the function I\'m looking for?


Wh

10条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-13 00:19

    If the method in question is on an interface, then using Quick Outline or F3 to jump to the definition will only take you to the interface definition. This isn't often what I want. Instead I hit, on my mac, Cmd + T on the method to get a Quick Type Hierarchy. From the type hierarchy you can go to the implementation of the method.

提交回复
热议问题