V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
aPsyduck
V2EX  ›  Java

IntelliJ IDEA 如何找出一个方法所有的调用入口?

  •  
  •   aPsyduck · Nov 17, 2022 · 2264 views
    This topic created in 1260 days ago, the information mentioned may be changed or developed.

    IntelliJ IDEA 有没有这样的功能 /插件:从一个方法向上找出所有调用它的入口? 比如我现在有一个 mapper 方法,我想知道到底有多少 controller 里的方法会 直接&间接 触发这个 mapper 的操作。 如果想找直接调用的地方可以直接 Command+鼠标左键,但是如果想找出所有间接的调用入口,需要一层层向上找,很多时候全凭记忆。

    5 replies    2022-11-18 21:07:32 +08:00
    Jooooooooo
        1
    Jooooooooo  
       Nov 17, 2022   ❤️ 2
    搜 intellij call hierarchy
    gaifanking
        3
    gaifanking  
       Nov 18, 2022
    ctrl alt h
    sobev
        4
    sobev  
       Nov 18, 2022
    方法名右键 Find Usages
    git00ll
        5
    git00ll  
       Nov 18, 2022
    树状结构,一层层向上找
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2517 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 12:15 · PVG 20:15 · LAX 05:15 · JFK 08:15
    ♥ Do have faith in what you're doing.