Intellij shortcut for quick call hierarchy

后端 未结 8 1038
无人共我
无人共我 2020-12-04 14:20

Is there a shortcut key to bring up the call hierarchy of a method inline with the code, in the quick menu format, rather than bringing up the call hierarchy panel?

相关标签:
8条回答
  • 2020-12-04 14:37

    To be complete: for the Mac user

    Press command + alt + F7

    0 讨论(0)
  • 2020-12-04 14:41

    Don't forget you can always do the action name search with Command + Shift + A and search for "call", amongst other commands.

    0 讨论(0)
  • 2020-12-04 14:42

    I don't think the inline method call hierarchy exists (please enlighten me if I am wrong).

    • Ctrl + Alt + H shows the call hierarchy in the tool window
    • Alt + F7 opens the dialog to find the usages
    • Ctrl + F7 finds the usages in the same file
    0 讨论(0)
  • 2020-12-04 14:45

    If you just want to jump to one of the callers of the method, CTRL + ALT + F7 is the way to go. On a Mac, use: Command + Option + F7

    There is a 'Default Keymap Reference' on the 'Help' menu

    0 讨论(0)
  • 2020-12-04 14:45
    • Call Hierarchy:
      • macOS: ^ + + H
      • windows: Ctrl + Alt + H
    • Find Usages:
      • macOS: + F7
      • windows: Alt + F7
    • Declaration:
      • from declaration, shows dropdown menu of usages
      • from usage, jumps to declaration
      • macOS: + B
      • windows: Ctrl + B
    0 讨论(0)
  • 2020-12-04 14:54

    Type hierarchy can be also useful sometimes (shows the parent and child classes of the current class):

    Press Ctrl+H

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