Find all occurrences of a function in Eclipse

前端 未结 5 1097
别跟我提以往
别跟我提以往 2021-01-31 08:03

In Eclipse, how can I find all usages of a function in a Java app? What is the shortcut for that?

I tried with Ctrl+H to search by method, but it r

相关标签:
5条回答
  • 2021-01-31 08:16

    Use Ctrl+G to find all uses of a function in the workspace.

    0 讨论(0)
  • 2021-01-31 08:19

    Select a method and hit Ctrl+Alt+H to open its Call Hierarchy which will show you where the method is being called from.

    0 讨论(0)
  • 2021-01-31 08:31

    You can find a menu entry in the context menu, when right clicking on the function. You can also press Ctrl+G when the cursor is above the function or member. Not every project and file type supports this feature. For example, EPIC Perl only supports finding the definition of a function.

    0 讨论(0)
  • 2021-01-31 08:31

    This is hackish, but if you temporarily change the method signature, it will create compile errors, which are easy to find.

    0 讨论(0)
  • 2021-01-31 08:41

    Use Ctrl+Shift+G for search the whole workspace

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