当前位置:网站首页>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 && ||
- Quartus:17.1版本的Quartus安装Cyclone 10 LP器件库
- Advanced multithreading (Part 2)
- Internal network mapping port to external network
- Nodejs package
- [leetcode weekly replay] 303rd weekly 20220724
- Log4j configuration file
- Two numbers that appear only once in the array
- Construction of Seata multilingual system
- Director of Shanghai Bureau of culture and Tourism: safety is the lifeline of culture and tourism, and we are seizing the new track of yuancosmos
猜你喜欢

Nodejs package

C # "learning code snippet" - recursively obtain all files under the folder

Netease game Flink SQL platform practice
![[Bert] transformer/bert/attention interview questions and answers](/img/32/5d29ce8056df16211630c3384adcf4.png)
[Bert] transformer/bert/attention interview questions and answers
![[mindspore] [training warning] warning when executing training code](/img/5a/978889301bdd02d6474c6e5723ad97.jpg)
[mindspore] [training warning] warning when executing training code

js && ||

mysql初次安装的root密码是什么

Detailed explanation of alexnet of paddlepaddle paper series (with source code)

Improve static loading dynamic loading

Moonpdflib Preview PDF usage record
随机推荐
Construction of Seata multilingual system
Unity image control and rawimage
Digital signal processing synthesis matlab design of dual tone multi frequency dialing system
[acwing周赛复盘] 第 61 场周赛20220723
C # "learning code snippet" - recursively obtain all files under the folder
#648 (Div. 2)(A. Matrix Game、B. Trouble Sort、C. Rotation Matching)
Find the median of two numbers in the fourth question of C language deduction (three methods)
Pain and happiness -nio programming
Divide 300000 bonus! Deeperec CTR model performance optimization Tianchi challenge is coming
Redis transaction learning
自动化测试系列-Selenium三种等待详解
Redis管道技术/分区
Install software on kubernetes cluster using helm 3 package manager
Soft test --- fundamentals of programming language (Part 2)
Chapter III kernel development
Simple use of mongodb database
C language force buckle the eighth question of string conversion integer. Ergodic method
Heap and stack in embedded development
Solution to the shortest Hamilton path problem
在混合云中管理数据库:八个关键注意事项