Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can we generate flow chart diagram in IntelliJ IDEA from Java code which is editable?

I am searching for a tool (preferably works offline) but couldn't find any.how can generate flow chart. i.e flow chart for a method or for the main method of the class.

I am aware of Sequence diagrams and its plugin for IntelliJ. but I am looking searching for a tool which generates flow charts instead of the sequence.

like image 458
Akhil Surapuram Avatar asked Apr 24 '19 11:04

Akhil Surapuram


People also ask

How do I enable diagrams in IntelliJ?

Press Ctrl+Alt+S to open the IDE settings and select Tools | Diagrams.

Can IntelliJ generate class diagram?

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.


1 Answers

You can try the SequenceDiagram for IntelliJ IDEA plugin.
It generates simple sequence diagrams which are a visible representation of code flows (via the method calls).

As for flow charts specifically (unfortunately I did not find an IntelliJ solution):
You can try the online code2flow which is a simple `paste code and edit the generated chart' solution. Obviously, it is not a part of IntelliJ but it will get the job done.
Another option is the FateSoft application, which generates flow charts for multiple programming languages. Simply install the tool on your workstation and parse the desired code in the app, while selecting the start and end line of code from which to generate the flow chart.


References:

  • SequenceDiagram plugin
  • Usage guide of the SequenceDiagram plugin
  • Code2flow online flow chart generator
  • FateSoft flow chart generator
like image 148
Rann Lifshitz Avatar answered Sep 28 '22 15:09

Rann Lifshitz