因爲本人用的是mac,因此這裏只記錄mac類圖分析的相關功能:ide
先上一個idea 幫助自動生成的圖看看效果,以下:idea
![](http://static.javashuo.com/static/loading.gif)
一、打開一個類的Diagram視圖:快捷鍵:shift+alt+commad+U
![](http://static.javashuo.com/static/loading.gif)
二、查找並添加類的子類/父類:alt+command+B / alt+command+P
![](http://static.javashuo.com/static/loading.gif)
三、類之間的關聯關係:show dependencies
![](http://static.javashuo.com/static/loading.gif)
獲得以下:spa
![](http://static.javashuo.com/static/loading.gif)
四、添加類到該digrrams視圖中:快捷鍵 space(空格鍵) 效果以下:
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
五、查看源碼:快捷鍵 command+方向向下箭頭:
![](http://static.javashuo.com/static/loading.gif)
六、查看一個類的子類:control+H
![](http://static.javashuo.com/static/loading.gif)
七、在Intellij idea中快速重寫父類方法
鼠標左擊以肯定代碼插入的位置,使用快捷鍵CTRL+O,會彈出窗口讓選擇某個方法,例如:.net
![](http://static.javashuo.com/static/loading.gif)
參考文獻:https://blog.csdn.net/zhangle1hao/article/details/788046003d