This content originally appeared on DEV Community and was authored by Puneet-Kumar2010
Tired of writing boring comments? Let AI do it — smart, snappy, and with vibes
.
What is CodeCharm?
CodeCharm is an open-source VS Code extension that generates meaningful, concise inline comments using the Gemini API.
No summaries, no fluff — just clean, helpful comments right where you need them, with a sprinkle of emojis.
Features
AI-powered inline code comments
\u Retry mechanism if the model fails
Concise, emoji-enhanced explanations
Triggered by selecting code and pressing
Ctrl + Win + J
Uses Gemini 2.0 Flash Lite for speed + quality
Lightweight, fast, and no GPT hype — just code clarity
Quick Demo
Here’s what it does to a function like this:
function area(a, b) {
console.log("I will find area of rectangle whose length and width are", a, b);
console.log("area of rectangle is", a * b);
return a * b;
}
After CodeCharm:
function area(a, b) { // Function to calculate area 👍
console.log("I will find area of rectangle whose length and width are", a, b); // Log input values 📏
console.log("area of rectangle is", a * b); // Calculate and log area 📐
return a * b; // Return calculated area 💯
}
How to Use
Install from VS Code Marketplace
Press Ctrl + Win + J on a selected block of code
Magic happens
Want to Contribute?
CodeCharm is open-source on GitHub!Check it out here: GitHub – DeveloperPuneet/CodeCharm
Raise issues
Suggest features
Improve prompts
Or just drop a to support!
Why I Built It
Sometimes I just wanted quick, clear comments for my code — not novels.And if you’re someone who loves both code and clarity (with a side of emojis), CodeCharm is your new favorite dev tool.
I built this extension for myself, but if it helps even one more dev write cleaner code faster — it’s all worth it.
Install Now
Made with love by DeveloperPuneet
This content originally appeared on DEV Community and was authored by Puneet-Kumar2010