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.
Press Ctrl+Alt+S to open the IDE settings and select Tools | Diagrams.
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.
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:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With