# 在 IntelliJ IDEA 中查看一个类的所有继承类

在每一个类文件中右击都有一个 `Diagrams` 的选项，在该选项下有两个选择，选择其中一个即可查看当前类的继承关系图。

或者将鼠标放到类名上，然后使用快捷键 `Ctrl` + `T` 来弹出实现类的窗口。不同操作系统的快捷键可能不一致，在 Settings 中 Keymap，可以搜索 `implementation` 查看当前快捷键什么。

如果要查看层级 hierarchy 窗口，在 IntelliJ 中使用 `F4`

![Hierarchy View](https://375000346-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M5dleMkP-Zf7JMwlh7e%2F-M5dleoMUK8SaS2U4MaS%2F-M5dlnkwro4JmPCDwgFa%2Fhierarchy-view-settings.png?generation=1587691374480175\&alt=media)

通过这个技巧就能够查看这个类的家族图谱，兄弟姐妹都非常清晰了。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://einverne.gitbook.io/intellij-idea-tutorial/find-all-implementations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
