← All articles
Developers

Dictating Code Comments Without Breaking Your Flow

September 11, 2026·4 min read

Most developers write documentation the same way: after the fact, under mild guilt, as fast as possible. The code gets written, then the comments get added as an afterthought, and they usually read that way.

The problem is not laziness. It is cost. Switching from writing code to writing prose breaks a different kind of thinking. It is context-switch overhead, and when that switch is expensive, you defer it until you have no choice.

Voice dictation changes that cost calculation.

The Narration Method

Instead of writing comments after finishing a function, try narrating while you work. You have already reasoned through what the function does. You are holding that context right now. Speaking it out takes ten seconds. Coming back later to reconstruct it takes two minutes, and the output is usually worse because you have already moved on mentally.

The workflow looks like this: write the function, keep your hands on the keyboard, press your dictation key, say what the function does and why, release the key. The comment is there. You never left the file.

With VoiceInk, because it works in any text field, you do not need a separate app or window. The transcription appears wherever your cursor sits, including inside your editor.

What to Dictate and What to Type

Not everything is worth dictating. One-line comments on obvious code are faster to type. But anything that requires a full sentence of context is a good dictation candidate. Think about:

  • Function-level docstrings explaining intent, not just parameters
  • Inline notes about why you chose one approach over another
  • README sections describing architecture or setup steps
  • Commit messages that need more than five words
  • Ticket comments or PR descriptions

These are the places where the thinking is already done and the only remaining task is transcription. That is where speaking beats typing most clearly.

Dictating Technical Language

The fair concern is accuracy. Technical terms, variable names, and acronyms can trip up voice recognition. A few habits help here.

Speak your prose naturally and type the code-specific pieces. If you are writing a docstring for a function called parseUserToken, you might dictate the explanation and type the function name reference manually. That hybrid approach costs almost nothing and avoids the frustration of watching recognition software guess at camelCase.

For teams using consistent terminology, recognition accuracy improves quickly. The software learns patterns. After a few sessions, you will find it handles most of your domain vocabulary without intervention.

The Bigger Win: Thinking Out Loud

Documentation is the obvious use case. The less obvious one is using voice to think through a problem before writing any code at all.

Talking through a problem changes how you understand it. When you have to say what a system does in plain sentences, the gaps become audible. You will catch design issues in spoken explanation that you would have missed reading your own notes silently.

Some developers keep a dictation-based scratch file, a running transcript of thoughts, questions, and decisions made during a working session. It is faster than typing notes and more complete than not taking notes at all. At the end of a session it becomes a log of reasoning that is genuinely useful when you or a colleague returns to the code later.

Start with the Next PR Description

You do not need to overhaul your workflow to try this. The next time you open a pull request, instead of typing the description, speak it. Describe what changed, why it changed, and what a reviewer should look for. Time yourself.

Most people find it takes half the time and reads better than what they would have typed. That alone is usually enough to make it a habit.

Stop typing. Start talking.

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

Download VoiceInk Free