当前位置:网站首页>Tool use of rookie tutorial -- View subclass (implementation class) class diagram in idea
Tool use of rookie tutorial -- View subclass (implementation class) class diagram in idea
2022-07-25 00:47:00 【Liu Shuijing】
List of articles
Software environment
- Mac OS
- JDK 1.8
- IDEA Ultimate 2019.2
Background introduction
Looking at the class diagram can help us quickly understand the main logic of the code , It is definitely a good helper for learning source code and studying technology . We all know that IDEA Pass through Option+Shift+Command+U Or right click ==》Diagrams ==》Show Diagram You can view the diagram of a class and its parent class . But if you want to see all subclasses or implementation classes of a class or interface , There is not a particularly good tutorial available online ( Maybe I didn't find ). For this reason , I did some research ( In fact, it's chaos everywhere ) Found the corresponding method . So I wrote it out and shared it with you , It's a coincidence .
step
First of all, we still need to Show Diagram, It can be operated by mouse , You can also use shortcut keys :

adopt Add Class The way
You can right-click ==》 Add Class to Diagram To add subclasses :
You can also press “ Space ” To add :
Enter the class you want to display in the search box , It should be noted that this method can not only add subclasses of the current class , You can also add any class you want ( As long as this class is in your classpath Next ).
adopt Show Implementations The way
This method can also be completed by right clicking , Right click the current class ==》 Show Implementations:
Of course, you can still use shortcut keys :Option+Command+B To add :
This way is to really add the current class / Subclass of interface / Implementation class .
effect
And then once you're done , The effect is as follows :
end
The above describes two uses IDEA How to view the class diagram , The first one is suitable for those familiar with class structure , Or you need to view multiple inheritance relationship trees at the same time ; The second is suitable for unfamiliar situations , Because its subclasses can be accurately found . If you have a better way, I hope you can share it with me .
PS: If you want to add all subclasses / Implementation class , Pop up candidate subclasses / When implementing the class list, select all and press enter .
边栏推荐
- js && ||
- Example analysis of enum data type in MySQL
- Notes on topic brushing (XXII) -- Dynamic Planning: basic ideas and topics
- How to better use the touchpad of notebook
- Log4j configuration file
- Detailed usage of iperf
- Redis transaction learning
- paddlepaddle论文系列之Alexnet详解(附源码)
- What is the function of transdata operator and whether it can optimize performance
- Codeworks round 649 (Div. 2) ABC problem solution
猜你喜欢

The model needs to use two losses_ FN, how to operate?

Heap and stack in embedded development
![[performance optimization] MySQL common slow query analysis tools](/img/97/c7604282544c5fa8cd7e85a6ab9154.png)
[performance optimization] MySQL common slow query analysis tools

494. Target sum · depth first search · knapsack problem
![[mindspore] [training warning] warning when executing training code](/img/5a/978889301bdd02d6474c6e5723ad97.jpg)
[mindspore] [training warning] warning when executing training code
![[英雄星球七月集训LeetCode解题日报] 第24日 线段树](/img/ae/1f3288a99cb07fcbb1836357e0229a.png)
[英雄星球七月集训LeetCode解题日报] 第24日 线段树

Soft test --- fundamentals of programming language (Part 2)

如果实现与在线CAD图中的线段实时求交点

Automated test series selenium three kinds of waiting for detailed explanation

Unity slider slider development
随机推荐
How to use measurement data to drive the improvement of code review
Detailed explanation of the usage of vector, queue and stack
Wireshark packet capturing and rapid packet location skills
Cloud native observability tracking technology in the eyes of Baidu engineers
Palm package manager of kubernetes learning offline installation of NFS client provider
BGP机房和BGP
Why do I have to clean up data?
[leetcode weekly replay] 303rd weekly 20220724
Heap and stack in embedded development
[LeetCode周赛复盘] 第 303 场周赛20220724
[untitled]
Related knowledge of paging
Invitation letter | "people, finance, tax" digital empowerment, vigorously promote retail enterprises to achieve "doubling" of economies of scale
Managing databases in a hybrid cloud: eight key considerations
The number of palindromes in question 9 of C language deduction. Two pointer array traversal method
[acwing weekly rematch] 61st weekly 20220723
Kubernetes application design guide
mysql初次安装的root密码是什么
Grafana connection tdengine reports an error 535
[mindspore ascend] [user defined operator] graph_ In mode, customize how to traverse tensor