CodeGlance is a VS Code extension that provides AI-powered code explanations using various LLM providers.
- Get instant explanations for selected code snippets
- Support for multiple AI providers:
- OpenAI (GPT-4, GPT-3.5-turbo)
- Anthropic (Claude-3 Opus, Claude-3 Sonnet)
- GitHub Copilot (NEW in v1.1.0)
- Easy configuration and switching between providers
- Keyboard shortcuts for quick access
- VS Code 1.90.0 or higher
- For OpenAI: An OpenAI API key
- For Anthropic: An Anthropic API key
- For GitHub Copilot: Active GitHub Copilot and Copilot Chat subscriptions
- Open VS Code
- Go to Extensions (Cmd+Shift+X)
- Search for "CodeGlance"
- Click Install
- Select code you want to understand
- Press
Cmd+Shift+E
(Mac) or use the command palette to run "Show Code Explanation" - View the explanation in:
- A side panel (for OpenAI and Anthropic)
- Copilot Chat panel (for GitHub Copilot)
CodeGlance: Configure AI Provider
- Set up your preferred AI providerCodeGlance: Test AI Configuration
- Test your current AI provider setupCodeGlance: Show Code Explanation
- Get an explanation for selected code
codeglance.aiProvider
: Select the AI provider ("openai", "anthropic", or "copilot")codeglance.openai.model
: Choose OpenAI model ("gpt-4" or "gpt-3.5-turbo")codeglance.anthropic.model
: Choose Anthropic model ("claude-3-opus-20240229" or "claude-3-sonnet-20240229")
Your API keys are stored securely in VS Code's secret storage.
- Added GitHub Copilot integration
- Native Copilot Chat interface for explanations
- Improved provider switching
- Bug fixes and performance improvements
This extension is licensed under the MIT License.
Contributions are welcome! Please feel free to submit a Pull Request.