Eclipse keyboard shortcut: goto function name

后端 未结 10 2120
生来不讨喜
生来不讨喜 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:21

    This is an old question, but for the sake of people Googling this, Ctrl + O opens the code outline search, which is what you were looking for.

    0 讨论(0)
  • 2020-12-13 00:22

    Quick and dirty is to use Ctrl+Shift+Up/Down, which jumps between members (methods, variables) in Java.

    0 讨论(0)
  • 2020-12-13 00:25

    Not exactly a direct shortcut, but you need to go through the Java Search dialog:

    (Ctrl+H):

    (Sergei mentions in the comments that you might have to select "Declarations" in the "Limit To" section)

    Eclipse Java source search

    0 讨论(0)
  • 2020-12-13 00:26

    simple 2 ways to function declarations:

    Way 1: ( Whole workspace )
                      Ctrl + Left Click the function calling place.

    way 2: ( within the same page )
                      press Ctrl + F to find dialog window and type n function_name and search.

    these will redirect to function definition

    0 讨论(0)
提交回复
热议问题