VS Code has no built-in voice dictation. Try Apple's Dictation and you'll hit the problem fast: getUserName becomes "Get user name," symbols turn into gibberish, and everything gets uploaded to Apple's servers.
Built-In Dictation Doesn't Work for Code#
macOS Dictation in VS Code mangles code syntax in seconds: autocorrection "fixes" your camelCase, symbols get spelled out or ignored, and there's no way to say "open paren" and get (. Plus, your code snippets end up on Apple's servers.
Whisperer fixes this with offline dictation that actually understands code.
Setup#
Install Whisperer
Download from the Mac App Store. Free to start.
Grant Permissions
Whisperer asks for Microphone, Accessibility (to insert text), and Input Monitoring (for the Fn shortcut). Standard macOS permission stuff.
Create a VS Code Profile
In settings, create a per-app profile for VS Code with Code Mode on.
Pick a Model
The balanced model works well for most people. Good accuracy on technical terms, fast enough that you don't notice the delay.
Daily Workflow#
Dictating Code#
“"function camel case calculate total open paren items colon array close paren colon number open brace"”
function calculateTotal(items: array): number {Dictating Comments#
“"slash slash to do refactor this to handle edge case when user is not authenticated"”
// TODO refactor this to handle edge case when user is not authenticatedDictating Git Commit Messages#
Open the VS Code Source Control panel, focus the commit message input, and speak:
“Fix authentication timeout by increasing session duration to thirty minutes”
Fix authentication timeout by increasing session duration to thirty minutesDictating Terminal Commands#
“"git checkout dash b feature slash snake case add user auth"”
git checkout -b feature/add_user_authTips#
Watch the Preview
Whisperer shows what it's transcribing in real-time. If it misheard something, just stop and try again.
Add Your Jargon
Project-specific names, weird library names, acronyms your team uses. Add them to the personal dictionary.
Start with Comments
If voice coding feels awkward, start with comments. They're just plain English. No syntax to worry about.
Toggle Mode for Long Stuff
Press once to start, press again to stop. Easier than holding Fn for multi-line dictation.
What About VS Code Extensions?#
There are VS Code extensions that do voice input. They mostly require internet, only work inside VS Code, don't understand code syntax, and send your dictation to some server. Whisperer runs offline, works everywhere on your Mac, and Code Mode actually handles programming syntax.
Speed#
On Apple Silicon, transcription is basically instant. The balanced model shows text as you speak, then does a quick cleanup pass when you stop. You're not waiting around.
Related: Voice Coding Guide, Code Mode, Voice Coding with Cursor, How to Dictate Code. See pricing and all features.
Ready to try voice dictation on your Mac?
Free download. No account required. 100% offline.
Download on the Mac App Store