See live control-flow-graphs of your code!
This plugin adds a CFG (Control-Flow-Graph) view for the current function.
Before installing, you can also try an interactive demo.
The plugin currently supports Python, C, C++, Go, TypeScript & TSX, JavaScript & JSX.
This is a port of the Function-Graph-Overview to JetBrains IDEs.
-
Using the IDE built-in plugin system:
Settings/Preferences > Plugins > Marketplace > Search for "Function Graph Overview" > Install
-
Using JetBrains Marketplace:
Go to JetBrains Marketplace and install it by clicking the Install to ... button in case your IDE is running.
You can also download the latest release from JetBrains Marketplace and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...
If the graph window doesn't shop up immediately after installation, then:
- Go to the main menu and click
View -> Tool Windows -> Function Graph Overview
. - Or open the Search Everywhere popup (double-click Shift, or click the 🔍 icon at the top-right of the IDE
window) and search for
Function Graph Overview
.
To change the color scheme of the CFG, open the settings and go to Tools -> Function Graph Overview
.
In the Color scheme
field, you can choose between built-in color schemes, or make your own.
For a builtin scheme, use enter light
or a color scheme matching the IDE's light theme,
or dark
for a scheme matching the dark theme.
For a custom scheme:
- Open the interactive demo
- Enable the
Color Picker
above the graph - Select the colors you want for your color scheme
- Press the Copy button to copy the color scheme into the clipboard
- Paste the config into the
Color scheme
field in the settings
Use the Flat switch
setting to change between two rendering modes for switch-like statements:
Flat Switch Enabled | Flat Switch Disabled |
---|---|
Plugin based on the IntelliJ Platform Plugin Template.