VS Code is the most popular code editor in the world. But it has no built-in voice dictation — and Apple's Dictation butchers code syntax. Here's how to set up proper voice-to-text for VS Code on Mac.
The Problem with Built-In Dictation#
If you try using macOS Dictation in VS Code, you'll hit these issues immediately: autocorrection ruins code (getUserName becomes "Get user name"), no symbol support, no casing commands, and your code gets sent to Apple's servers.
Whisperer solves all of these with offline, Code Mode-aware dictation.
Setting Up Whisperer for VS Code#
Install Whisperer
Download from the Mac App Store. The base app is free.
Grant Permissions
Whisperer needs Microphone (to record), Accessibility (to insert text), and Input Monitoring (for the Fn key shortcut).
Create a VS Code Profile
Open settings and create a per-app profile for VS Code with Code Mode enabled.
Choose Your Model
The balanced model offers good accuracy for technical terms without significant latency.
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_authProductivity Tips#
Streaming Preview
Whisperer shows a live preview of your transcription as you speak. If something looks wrong, you can stop and re-record.
Personal Dictionary
Add project-specific names, libraries, and acronyms for better recognition.
Start with Comments
New to voice coding? Start by dictating comments — they're natural language with a minimal learning curve.
Toggle Mode
For longer blocks, press once to start, press again to stop. Better than holding Fn for multi-line dictation.
Whisperer vs. Other VS Code Voice Tools#
Some VS Code extensions offer voice input, but they typically require an internet connection, only work within VS Code, don't handle code syntax, and send your code to third-party servers. Whisperer is system-wide, fully offline, and has Code Mode specifically designed for programming syntax.
Performance#
On Apple Silicon Macs, Whisperer transcribes with near-zero latency. The balanced model processes speech in real-time with streaming output — you see text appearing as you speak, with a final refinement pass when you release the shortcut.
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