https://github.com/beicause/call-graph
Generate call graph for vscode in svg or graphviz dot.
https://github.com/beicause/call-graph
call-graph graphviz
Last synced: about 1 year ago
JSON representation
Generate call graph for vscode in svg or graphviz dot.
- Host: GitHub
- URL: https://github.com/beicause/call-graph
- Owner: beicause
- License: apache-2.0
- Created: 2022-03-27T15:32:35.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-12-19T05:59:23.000Z (over 1 year ago)
- Last Synced: 2025-04-02T02:18:26.523Z (about 1 year ago)
- Topics: call-graph, graphviz
- Language: TypeScript
- Homepage:
- Size: 3.87 MB
- Stars: 93
- Watchers: 3
- Forks: 24
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# call-graph

vscode extension for generate call graph in [graphviz dot language](https://www.graphviz.org/doc/info/lang.html), 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
1. Open your folder and select a entry function
2. Run `CallGraph.showOutgoingCallGraph` command using context menu or `Ctrl+Shift+P` to show outgoing calls
3. Or Run `CallGraph.showIncomingCallGraph` command using context menu or `Ctrl+Shift+P` to show incoming calls
4. Click `save dot file` or `save as svg` in the bottom left corner to save the graph
5. Add `.callgraphignore` file 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](./CHANGELOG.md).
## For more information
- [GitHub Repository](https://github.com/beicause/call-graph)
## Donate
[Donate me via Paypal](https://paypal.me/beicause). Thank you for you support to this project and my open source works.
**Enjoy!**