call-graph
call-graph copied to clipboard
Generate call graph for vscode in svg or graphviz dot.
trafficstars
call-graph
vscode extension for generate call graph in graphviz dot language, based on vscode call hierarchy language feature.
Features
- generate call graph in graphviz dot language and preview.
- save graph as dot or svg file
Quick start
- Open your folder and select a entry function
- Run
CallGraph.showOutgoingCallGraphcommand using context menu orCtrl+Shift+Pto show outgoing calls - Or Run
CallGraph.showIncomingCallGraphcommand using context menu orCtrl+Shift+Pto show incoming calls - Click
save dot fileorsave as svgin the bottom left corner to save the graph - Add
.callgraphignorefile in your project root directory to ignore some files or folders in workspace (the syntax is the same as.gitignore)
Configuration
You can configure ignoreFile(.callgraphignore by default), maxDepth. See the descriptions in setting.
How it works
It depends vscode.provideOutgoingCalls and vscode.provideIncomingCalls built-in commands( the same with Show Call Hierarchy command, not available for some language server ).
Changelog
See CHANGELOG.md.
For more information
- Also developed by me for preview and edit graphviz file:
- GitHub
Donate
Donate me via Paypal. Thank you for you support to this project and my open source works.
Enjoy!