Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在 intellij 中查看类层次结构以及方法。假设,我想知道某些方法在类层次结构中的哪些类中被覆盖/实现。在eclipse中,我可以打开层次面板(f4),锁定方法,然后它会告诉我它被覆盖的位置。如何在 Intellij 中实现相同的目标?
你可以去
View -> Tool Windows -> Structure
并单击齿轮选择Show Inherited
Show Inherited
或前往
View -> Tool Windows -> Hierarchy
在每个方法签名左侧的排水沟上,您都有一个小图标,指示它是否被覆盖/实现或覆盖/实现了其他方法。
只需将鼠标悬停在其上即可查看位置。
单击将让您选择实现并跳转到它。
有一个选项可以让您看到左侧的成员,称为:
Structure