Use IntelliJ to generate class diagram

前端 未结 6 1747
青春惊慌失措
青春惊慌失措 2020-12-12 11:35

How do I get IntelliJ 10.5 (on the Mac) to generate a class diagram showing all of the classes in my project? I\'m sure I\'m overlooking something obvious, but I can only g

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-12 11:41

    IntelliJ IDEA 14+

    • Show diagram popup

      Right click on a type/class/package > Diagrams > Show Diagram Popup...
      or Ctrl+Alt+U

    • Show diagram (opens a new tab)

      Right click on a type/class/package > Diagrams > Show Diagram...
      or Ctrl+Alt+Shift+U

      right click Diagrams Show Diagram

    By default, you see only the classes/interfaces names. If you want to see more details, go to File > Settings... > Tools > Diagrams and check what you want (E.g.: Fields, Methods, etc.)


    P.S.: You need IntelliJ IDEA Ultimate, because this feature is not supported in Community Edition. If you go to File > Settings... > Plugins, you can see that there is not UML Support plugin in Community Edition.

提交回复
热议问题