So I've read the question How to show all parents and subclasses of a class in IntelliJ IDEA? but it doesn't solve my problem exactly.
I'm used to going to a method in eclipse, anywhere in the class hierarchy (jar or code), hitting Ctrl - T , it brings up a tree diagram of all classes above and below that implement that method (ie if subclasses/superclasses don't implement this method it doesn't show them).
When you select a class from the diagram, it takes you precisely to that method.
Seems Ctrl - H shows you a general class diagram, not specific to the method you've selected. Ctrl - Shift - H , seems to show you a method hierarchy, but only the class and subclasses of the method you've selected (not the superclasses).
How do I navigate up the hierarchy to the specific method? Given that 1) I don't know at what level the method was defined at it's highest point. Also 2) given that there may be similar method names, so I don't want to rely on finding it by typing which may be error prone.
I regard this as pretty much bread and butter functionality, so I'd be disappointed if there isn't anything similar.
Update: The best I've found is hitting Ctrl - U a couple of times which eventually gets you to the top of the hierarchy, then hitting Ctrl - Shift - H naturally shows you everything below. This is more steps that eclipse and a little disorientating because the tool doesn't show you exactly where you were. Currently points still go to eclipse.
I would open a defect . There is no reason to filter the superclasses in the Hierarchy Method tab.
To get the same behaviour in Intellij change the Implementation(s) keymaping:
Preferences > Keymap
Search for 'Implementation(s)'
Change the keymap to Ctrl+T
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.