Thanks for checking out Code Visualizer! ๐ This extension helps developers visualize their code by generating a flowchart that represents the call hierarchy of functions and methods in your codebase. It transforms the often complex structure of code into an easy-to-understand visual format, making it simpler to navigate large projects. ๐บ๏ธ
- Flowchart Generation: ๐ Right-click on any function or method, and select 'Visualize' to create a visual representation of its call hierarchy.
- Interactive Visuals: ๐ฑ๏ธ Zoom in, zoom out, and interact with the flowchart to explore different parts of your code.
- Customizable Views: ๐จ Tailor the flowchart to focus on specific function calls, and adjust the layout for better readability.
- Searchable: ๐ Search for any function or method in the flowchart to quickly navigate to it.
- Multi-Language Support: ๐ Currently supports C, C++, Python.
- At least that's the goal of this project. Contributions are welcome! ๐ค
- Install the extension from the VS Code Marketplace.
- Right-click on any function or method, and select 'Visualize' to create a visual representation of its call hierarchy.
- Watch as the extension creates an interactive diagram of function calls ๐ญ
- Click on nodes to explore deeper into the call hierarchy ๐ต๏ธโโ๏ธ
Code Visualizer uses VS Code's built-in call hierarchy API, making it language-agnostic and powerful across various programming languages. ๐ช
- Interactive node-based diagrams ๐ธ๏ธ
- Direct navigation to function definitions ๐
- Multiple connection visualization for repeated function calls ๐
We're excited to welcome contributors to the Code Visualizer project! Here's how you can get involved:
- Fork the repository ๐ด
- Clone your fork:
https://github.com/Ganjai-Labs/code-visualizer.git
๐ฅ - Create a new branch:
git checkout -b your-feature-name
๐ฟ - Make your changes โ๏ธ
- Run tests:
npm test
๐งช - Commit your changes:
git commit -m "Add some feature"
๐พ - Push to the branch:
git push origin your-feature-name
๐ - Submit a pull request with the description of your changes ๐
Before contributing, please read our Contributing Guidelines and Code of Conduct. ๐
We're always looking to improve Code Visualizer. Here are some features we'd love to see:
-
Detect cycles in the generated diagrams, and highlight them in red ๐ด
-
Draw multiple connections between nodes when a function is called multiple times ๐
-
Export diagrams as images or SVGs. Currently, the generated diargams are html files that are not viewable outside of VS Code. ๐ธ
-
Integration with version control to show changes in call hierarchy over time ๐ฐ๏ธ
-
Performance optimizations for large codebases โก
-
Enhanced filtering options for complex diagrams ๐
- Conditional highlighting of nodes based on certain conditions ๐จ
- Integration with LLMs to provide more context for the generated diagrams ๐ค
Feel free to tackle any of these or propose your own ideas! ๐ก
Ready to dive in? Install Code Visualizer from the VS Code Marketplace and start visualizing your code today! ๐๐จโ๐ป๐ฉโ๐ป