Coddy Buddy is your fun, fast, and friendly AI programming assistant for Visual Studio Code. Stop typing out your questions! Simply hit a key combination and ask your questions out loud. Coddy Buddy analyzes your code context, current line, and any errors, then instantly speaks a concise, three-sentence explanation directly to you in a clear voice.
🚀 Key Features
🎙️ Voice Activation: Press Ctrl + Space (Cmd + Space on macOS) and ask Coddy Buddy to explain the code.
🧠 Context-Aware: Analyzes the current line of code, surrounding snippet, and active VS Code diagnostics (errors/warnings).
🗣️ Concise & Spoken: Explanations are strictly limited to three short sentences for maximum clarity and speed, delivered instantly via Text-to-Speech (TTS).
💡 Quick Fixes: Great for quickly understanding complex lines or debugging errors without breaking your flow.
🛠️ Usage
Coddy Buddy can be activated in two ways:
1. Voice Activation (Recommended)
Place your cursor on the line of code you want explained.
Press and hold: Ctrl + Space (or Cmd + Space on macOS).
Speak your command (e.g., "Explain this line," or "Why is there an error here?").
Release the keys.
Coddy Buddy will speak the three-sentence explanation directly to you.
2. Standard Keybinding
Place your cursor on the line of code you want explained.
Press the secondary keybinding: Ctrl + Alt + E.
The explanation will appear in the VS Code output panel and will be spoken aloud.
⚙️ Requirements
Node.js: Required for VS Code extension dependencies.
Python: The core logic for AI querying and Text-to-Speech is run via Python. Ensure your system's Python environment is configured correctly.
Microphone: Obviously! Required for the voice activation feature.
❓ Troubleshooting
"No voice output?" Ensure the pyttsx3 library and its dependencies (like pyaudio) are correctly installed in the Python environment used by the extension. Also, check your system's microphone permissions for VS Code.
"Voice command not starting?" Check if the keybinding Ctrl + Space conflicts with another extension or a system-wide shortcut.
🤝 Contributing
(If you plan to use a GitHub repository, include this section.)
Feel free to report bugs, suggest features, or contribute code on our GitHub repository!