Voice Dictation for Code Comments: A Developer's Setup

Most developers write great code and terrible documentation. Not because they lack the ability, but because switching from coding brain to writing brain is friction enough to skip it entirely. Voice dictation does not eliminate that context switch, but it makes the writing part fast enough that you actually do it.
Why Code Comments Get Skipped
Typing a function takes focus. Typing a comment after you finish that function feels like overhead. By the time you have the logic working, you just want to move on. The comment gets left as a TODO, or skipped outright.
The real issue is not laziness. It is that writing a thorough comment at 40 words per minute costs you a noticeable chunk of time. Speaking one at 130 words per minute barely registers. A three-sentence explanation of what a function does, why it exists, and what edge cases it handles might take 90 seconds to type. Speaking it takes about 20 seconds.
That gap is the difference between commenting your code and not commenting it.
What to Dictate and What to Type
Not everything benefits from dictation. Variable names, method signatures, and anything requiring precise punctuation are still faster to type. But prose is prose, whether it lives in a .md file or inside a docstring.
Things worth dictating:
- Docstrings and function-level comments
- Inline explanations of non-obvious logic
- README files and setup instructions
- Architecture decision records
- PR descriptions and commit messages
- Ticket comments and review feedback
- Slack messages to your team
Anything you would write in a text editor is a candidate. The rule is simple: if you would describe it out loud to a colleague, you can dictate it.
Setting Up a Dictation Workflow That Fits Coding
The friction point with most dictation tools is mode switching. You should not have to leave your editor, open another app, speak, copy, and paste. That is worse than just typing.
A local dictation app like VoiceInk works differently. You press a hotkey, speak into whatever field your cursor is in, and the text appears. That means you can be inside VS Code, place your cursor above a function, and dictate the comment directly. No clipboard gymnastics. No app switching.
The setup worth trying:
- Assign a hotkey you can hit without moving your hand far from the home row. Something like
Ctrl+Spaceor a thumb key on a programmable keyboard works well. - Keep your microphone close enough that you do not need to raise your voice. A desk mic or a headset with a boom arm is better than your laptop's built-in mic.
- Start with low-stakes prose: commit messages, Slack replies, ticket descriptions. Build the habit before you try dictating a 300-line README.
Dictating Docstrings Without Sounding Like a Robot
The biggest concern developers raise is that dictated text sounds informal. That is a real issue, but it is a workflow issue, not a dictation issue.
When you speak, you tend to use complete sentences and plain language. That is actually good for documentation. The problem is filler words and run-ons. A few habits help:
Pause before you start. Know roughly what you want to say. One sentence at a time is easier to control than a long ramble you have to edit down.
Use a cleanup step. VoiceInk has a Refine feature that rewrites a dictation into clean, polished prose. You speak the rough version, it cleans the grammar and removes the ums, and you get text that reads like you wrote it carefully. For docstrings and README sections, this is worth using.
Edit as code, not as prose. Once the text is in your editor, treat it like any other code. Read it, tighten it, delete what does not need to be there. Dictation is a faster first draft, not a finished product.
PR Descriptions and Ticket Comments
This is where dictation pays back fastest. PR descriptions are prose. Ticket comments are prose. Review feedback is prose. Developers write a lot of it and most of it gets written quickly and carelessly because typing it properly takes too long.
A thorough PR description might be 200 words: what changed, why it changed, how to test it, what the reviewer should focus on. Typing that is a five-minute interruption. Speaking it is under two minutes, and because speaking is natural, you tend to include more context than you would if you were typing.
Same logic applies to Slack. When a teammate asks a question that deserves a real answer, the typing cost often leads to a short answer instead of a good one. Speaking a longer, clearer response takes less effort.
A Realistic Picture of What Changes
You will not dictate everything. You will find a natural split where code stays typed and prose gets spoken. Most developers who stick with dictation end up using it for maybe 20 to 30 percent of their daily keystrokes, primarily the writing-heavy parts of the job.
That 20 to 30 percent is not random. It tends to be the documentation that was getting skipped, the PR descriptions that were getting abbreviated, the Slack replies that were getting delayed. The quality of those outputs often improves just because speaking is a lower-friction path to a complete thought.
For developers dealing with any hand or wrist discomfort, the math is even more direct. Every word you speak is a word your hands did not type. If you are writing a lot of prose in a day, shifting that to voice is one of the simplest ways to reduce repetitive strain without changing how you write code.
Getting Started Without Overhauling Your Setup
You do not need a new microphone, a new editor, or a new workflow to try this. Start with the lowest-friction entry point: dictate your next commit message. Then your next Slack reply. Then a docstring for a function you just wrote.
If dictating prose into your existing tools sounds useful, VoiceInk has a free plan. Install it, pick a hotkey, and try it on the next thing you would normally have typed and abbreviated. The habit builds faster than you expect.
Don't type. Speak.
VoiceInk Pro at $50 a year instead of $89, and it renews at $50. Wispr Flow charges $144 a year; this is about a third of that. Mac and Windows, cancel anytime.
Get a year for $50Not ready to pay? Download VoiceInk free.