Eclipse keyboard shortcut: goto function name

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

    Not sure if this is exactly what you want, but if you Ctrl + H, that'll bring up the search dialog. The default option (for me, using the Java EE perspective) is a Java search. I can type in the method name, and then select the 'Method' radio button under the Search For block. Note that the default option (again, for me) for the 'Limit To' block was the 'References' radio button. I had to change that to 'All occurences' in order to see the method declaration, and not just callers.

提交回复
热议问题