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! 😊👨💻👩💻