Call Hierarchy: expand the 'XX usages' result?
已回答
Hello,
when producing the call hierarchy for a method the call locations are grouped together by caller method. Is there a way to jump to each location? I know the locations are shown in the scrollbar, but i'd like to expand it in the tool so I could just double click to just jump to each location.

Especially in Kotlin with heavy use of lambdas inside a function/method those methods can get quite long (basically almost the size of a traditional class) - e.g. in ktor you'd basically add many website HTTP routes within one function using lambdas: https://ktor.io/servers/features/routing.html .. it would be helpful to either expand the hierarchy by location or at least for each lambda.. is there any way to do this?
thanks,
Herbert
请先登录再写评论。
Hello, please clarify if you are asking about expanding the call hierarchy nodes? You can expand particular node by pressing right arrow, all nodes can be expanded with "cmd +", double clicking the node navigates you to the place in code.
Hello, I cannot see into Herbert's head but I guess he means expansion of multiple usages within same caller. In fact, it is another kind of node expansion, different from the caller expansion available on right arrow or cmd +. I would appreciate if this expansion was available directly under tree node (in case of 2+ usages). Perhaps with short citation from row, but it's just NTH.
Example for Herbert's case:
The motivation for me is that the information "(3 usages)" is too much to the right and can be easily overlooked. The Call Hierarchy window is usually narrow and this is the only reason to make it temporarily wide, look into number of usages and return to previous width.
I would be interested in knowing what's the Idea dev team's opinion of this proposal. Thanks!
Hi Tomas Zalusky Thank you for the provided feedback. We have a related request in YouTrack. Feel free to upvote/follow it at https://youtrack.jetbrains.com/issue/IDEA-249233