You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何将Call Hierarchy添加至Intellij鼠标右键弹出菜单?

Add Call Hierarchy to IntelliJ's Right-Click Context Menu

Got it, adding the Call Hierarchy action to your right-click menu in IntelliJ is straightforward—here’s a step-by-step guide to get it done:

Step 1: Open the Keymap Settings

  • Fire up IntelliJ, then head to File > Settings (use Ctrl+Alt+S on Windows/Linux, or Cmd+, on Mac for a quick shortcut).
  • In the left sidebar, scroll down to Appearance & Behavior and expand it, then select Keymap.

Step 2: Find the Call Hierarchy Action

  • Use the search bar at the top of the Keymap window and type Call Hierarchy—this will filter the results to show the exact actions you need.
  • You’ll likely see two entries:
    • Call Hierarchy: Shows where the selected element (method, class, etc.) is being called from.
    • Reverse Call Hierarchy: Shows which elements the selected item calls out to.

Step 3: Add the Action to Your Right-Click Menu

  • Right-click the Call Hierarchy entry you want to add (repeat this step for the reverse version if you need it too).
  • Hover over Add to Context Menu, then select Editor Popup Menu—this is the menu that pops up when you right-click directly in the code editor.
  • Want to reposition it? Navigate to the Editor Popup Menu section in the Keymap list, find your newly added Call Hierarchy entry, right-click it, and use Move Up or Move Down to place it where it’s most convenient for you.

Step 4: Save and Test

  • Click Apply then OK to save your changes.
  • Jump back to any code file, right-click a method or class, and you’ll now see Call Hierarchy (and/or Reverse) in your right-click menu—click it to launch the hierarchy view instantly!

Pro tip: You can still keep your default keyboard shortcuts for Call Hierarchy (Ctrl+Alt+H on Windows/Linux, Cmd+Alt+H on Mac) alongside the menu entry for even quicker access when you prefer keyboard navigation.

内容的提问来源于stack exchange,提问作者peterboston

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.27 03:22:39