Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable the auto layout of the IntelliJ IDEA UML Diagram?

I've moved from Eclipse to IntelliJ IDEA and I like the its responsiveness.

In Eclipse I use ObjectAid to assist in designing my application structure. IntelliJ IDEA does have a UML diagram but it got really annoying when it keeps re-adjusting my diagram layout to what it thinks is a neat structure. Everytime I add/remove a class, it will re-adjust the layout. It may look neat, but it makes little sense to me. I like to manually place my class model in the exact place I leave it. Why oh why does IntelliJ think it knows best? Can I change this behavior? I can't find any settings in the settings menu.

like image 598
user3804927 Avatar asked Nov 29 '14 07:11

user3804927


People also ask

How use UML diagram in IntelliJ?

In the Project tool window, right-click a package for which you want to create a diagram and select Diagrams | Show Diagram Ctrl+Alt+Shift+U ). In the list that opens, select Java Class Diagram. IntelliJ IDEA generates a UML diagram for classes and their dependencies.

Does IntelliJ support UML?

IntelliJ IDEA Ultimate allows you to generate UML diagrams. You can use ⌥⇧⌘U (macOS) or Ctrl+Alt+Shift+U (Windows/Linux) to generate a UML diagram for your code which can help you and your team to read and understand the codebase.

How do I enable sequence diagram in IntelliJ?

Open the class and click the mouse cursor over it. Then open the Tools →Sequence diagram, choose options, and… the magic is done. Sequence diagrams are an excellent tool for looking at the big picture of object interaction.

How do you create a class diagram automatically?

To build a class diagram, all you have to do is launch the Smartdraw's Automatic Class Diagram extension and point it at your repository. Load your source code and choose which files you want to include in your diagram. Click "Build Diagram" and you're done.


Video Answer


1 Answers

You can disable this behaviour in the preferences under "Tools" -> "Diagrams". There is an option "Do relayout when new elements were added" which you need to disable.

Note: IntelliJ 2016.3

Where to disable the automatic relayout of diagrams in IntelliJ

like image 175
Johannes Barop Avatar answered Oct 03 '22 23:10

Johannes Barop