Get instant AI-powered explanations for any code snippet in 15+ languages with secure API key management!
- Multiple Access Methods: CodeLens buttons, Quick Actions, Context Menu, Command Palette
- Real-time Explanations: Instant AI responses with progress indicators
- Cross-Language Support: Works with Python, JavaScript, TypeScript, Java, C++, and 50+ languages
- English • Bengali (বাংলা) • Arabic (العربية) • Spanish • French
- German • Hindi • Chinese • Japanese • Korean
- Portuguese • Russian • Italian • Dutch • Malay
- Native AI Prompts: Culturally appropriate explanations with local technical terms
- VS Code Secret Storage: Encrypted, cross-platform security
- Command Palette Setup: No manual file editing required
- Password-Masked Input: Keys never visible on screen
- Auto-Migration: Seamless upgrade from .env files
- Floating CodeLens Buttons:
🤖 Explain Codeappears above selected code - Quick Actions: Press
Cmd+.for lightbulb menu integration - Clean Popups: VS Code theme-compatible explanation panels
- Language Indicators: Shows current language in UI elements
- Select code → See
🤖 Explain Code (Language)button above - Click to get explanation in side panel
- Select code → Press
Cmd+.→ Choose💡 Explain Code - Or click the lightbulb icon
- Select code → Right-click →
CodIn: Explain Code
- Select code →
Cmd+Shift+P→CodIn: Explain Code
Select this Python code:
def factorial(n):
if n < 0:
raise ValueError("Factorial not defined for negative numbers")
return 1 if n <= 1 else n * factorial(n - 1)CodIn explains in your chosen language:
🇺🇸 English: "This function calculates the factorial of a number using recursion..."
🇧🇩 Bengali: "এই ফাংশনটি রিকার্শন ব্যবহার করে একটি সংখ্যার ফ্যাক্টোরিয়াল গণনা করে..."
🇸🇦 Arabic: "تحسب هذه الدالة العاملية لرقم باستخدام العودية..."
🇪🇸 Spanish: "Esta función calcula el factorial de un número usando recursión..."
- Python (.py)
- JavaScript (.js)
- TypeScript (.ts)
- C++ (.cpp, .cc, .cxx)
- Java (.java)
- C# (.cs)
- Go (.go)
- Ruby (.rb)
- PHP (.php)
- Swift (.swift)
- And many more!
CodIn: Set OpenAI API Key- Password-masked secure setupCodIn: Check API Key Status- View connection statusCodIn: Remove OpenAI API Key- Safe removal with confirmation
- ✅ VS Code Secret Storage (encrypted)
- ✅ Password-masked input
- ✅ No plain text storage
- ✅ Auto-migration from .env files
- Open VS Code
- Go to Extensions view (
Cmd+Shift+X) - Search for "CodIn"
- Click "Install" on "CodIn - AI Code Explainer" by SemicolonAILabs
- Download the latest
codin-1.2.3.vsixfrom GitHub Releases - In VS Code:
Cmd+Shift+P→ "Extensions: Install from VSIX..." - Select the downloaded file
- VS Code 1.70.0 or higher
- OpenAI API key (get one from OpenAI Platform)
- Internet connection for AI explanations
{
"codin.explanationLanguage": "English",
"codin.showLanguageInPopup": true,
"codin.enableCodeLens": true,
"codin.enableCodeActions": true
}Access Settings: Cmd+, → Search "codin"
- Encrypted Storage: API keys stored using VS Code Secret Storage (encrypted at rest)
- No Plain Text: Keys never stored in files or visible on screen
- Secure Transmission: HTTPS-only communication with OpenAI
- Privacy First: Code snippets only sent to OpenAI for explanation
- No Logging: CodIn doesn't store or log any user data
- Cross-Platform: Secure on macOS, Windows, and Linux
- ❌ API keys in plain text
- ❌ User code snippets
- ❌ Explanation history
- ❌ Personal information
- ❌ Usage analytics
# Clone the repository
git clone https://github.com/semicolonailabs/CodIn.git
cd CodIn
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Watch for changes
npm run watch
# Package extension
npm run package
# Run linting
npm run lint# Install locally for testing
code --install-extension codin-1.2.3.vsix
# Or press F5 in VS Code to launch Extension Development HostWe welcome contributions! Please see CONTRIBUTING.md for detailed guidelines.
Quick links:
Enjoy coding with CodIn! 🎉
