← All articles
Developers

How to Dictate Code Comments Without Breaking Your Flow

September 16, 2026·4 min read

Most developers write code comments reluctantly. Not because they do not understand their value, but because switching from the logic of the code to the prose of an explanation requires a gear change that interrupts everything. You stop, you type something brief and vague, you move on. Six months later nobody knows what that function does, including you.

Voice does not fix the reluctance. But it does reduce the friction enough that the comment actually gets written.

The Real Cost of Switching to Prose

When you are deep in a problem, your working memory is loaded with context: variable names, edge cases, the three reasons you chose this approach over the obvious one. The moment you stop to type a comment, you are competing with that context. Your fingers are slow, your sentence comes out flat, and you lose a thread.

Speaking is faster and pulls less from that working memory. You can dictate a comment in roughly the time it takes to think it, rather than the time it takes to type it. That difference matters at the moments when documentation is most valuable, right when you understand something clearly and are about to move on.

What to Actually Dictate

Not everything belongs in a comment, and voice does not change that. The goal is to capture the reasoning that the code itself cannot show.

Good candidates for voice capture include: why you chose one approach over another, what a non-obvious edge case protects against, what the expected input range actually is in practice, and any external context like a ticket number or a third-party API quirk that future readers will need.

Bad candidates: restating what the code already shows, generic descriptions of what a function does when the name already says it.

The discipline is the same with or without voice. Voice just removes the excuse of friction.

Setting Up a Minimal Voice Workflow

You do not need a complex system. A few habits are enough.

First, keep your dictation tool ready at all times. With VoiceInk, this means the shortcut is always available system-wide. You do not switch apps, you do not open a separate window. Cursor goes in the comment line, press the key, speak, done.

Second, dictate immediately after solving something, not at the end of the session. The end of the session is when context is coldest. The moment after you crack a problem is when you have the most to say about why it works.

Third, do not edit the dictation in place. Say it, let it land, keep moving. You can clean up the phrasing later in a review pass. The important thing is that the information exists.

Voice for Dev Notes Beyond Comments

Comments are the obvious case, but voice capture fits other parts of a developer's day just as well.

Standup notes are faster spoken. Architecture decisions captured in a running doc get written more often when you can speak them instead of type them. Bug investigation logs, where you are narrating your own debugging process, work well by voice because they are already conversational.

Some developers keep a plain text scratch file open during work sessions. When a stray thought appears, something to revisit, a potential refactor, a question to ask a teammate, they dictate it immediately and deal with it later. Voice makes that capture fast enough that it does not interrupt the primary task.

The Broader Point

Documentation debt is real, and it compounds. Teams inherit codebases full of functions that nobody can explain because the person who wrote them captured nothing while the context was fresh.

Voice does not solve documentation culture on its own. But it removes the physical and cognitive cost of writing things down in the moment. That is a smaller change than it sounds, but smaller changes are the ones that actually stick.

If your comments are too sparse and your docs are always behind, it is worth trying one week where you speak every comment instead of typing it. The bar is lower than you think.

Stop typing. Start talking.

VoiceInk turns your voice into text in any app. Local, fast, private. Free to start.

Download VoiceInk Free