如何在 IntelliJ IDEA 中显示一个类的所有父类和子类? [英] How to show all parents and subclasses of a class in IntelliJ IDEA?

查看:97
本文介绍了如何在 IntelliJ IDEA 中显示一个类的所有父类和子类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在 Eclipse 中编辑 Java 类时,当我的光标位于类变量上时,我可以执行 Ctrl+T 来弹出一个显示所有内容的弹出窗口它的父类和子类.IntelliJ 中的等价物是什么?

When I'm editing a Java class in Eclipse, when my cursor is over a class variable, I can do Ctrl+T to have a popup that shows all its parents and subclasses. What is the equivalent in IntelliJ?

示例:

Use|r user = new User();

管道是我的光标.

推荐答案

导航 |Type Hierarchy Ctrl+H 将显示类似的信息,但在面板中.您可以浮动取消固定面板,使其仅在您使用键盘快捷键时出现在固定显示位置.

Navigate | Type Hierarchy Ctrl+H will show similar information, however in the Panel. You can Float and Unpin the Panel so that it appears on the fixed display position only when you use the keyboard shortcut.

这篇关于如何在 IntelliJ IDEA 中显示一个类的所有父类和子类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆