Making code comments scannable with Iconic Comments
How a VS Code extension with 30+ emoji snippets turns comments into something you can scan at a glance.
Comments are easy to write and easy to skim past. When a file mixes warnings, TODOs, performance notes and plain explanations in the same grey text, the one that matters gets lost. Iconic Comments is a free VS Code extension that gives each kind of comment its own marker, so you can tell them apart at a glance.
Install
Install it from the Visual Studio Marketplace, or from the terminal:
code --install-extension srd.iconic-comments
How it works
In any TypeScript, JavaScript, TSX or JSX file, type ii. and suggestions
appear. Pick one, and the snippet expands into a comment with an icon and a
label:
// ⚠️ Warning message
export async function chargeCard(orderId: string) {
// 🛡️ SECURITY: never log the full card number
// ⚡ PERFORMANCE: cache the gateway client between calls
// ✅ TODO: retry once on a network timeout
}
A few of the snippets
| Prefix | Expands to |
|---|---|
ii.warning |
// ⚠️ Warning message |
ii.bug |
// 🐞 BUG: Bug description |
ii.fix |
// 🔧 FIX: Fix description |
ii.security |
// 🛡️ SECURITY: Security concern |
ii.performance |
// ⚡ PERFORMANCE: Performance hint |
ii.todo |
// ✅ TODO: TODO item |
There are more than 30 in total, grouped into status, development, technical and organization snippets. You don't need to memorize them: the built-in cheatsheet, available from the command palette, lists every one.