Hearsy LogoHearsy

Voice Dictation for VS Code on Mac with Hearsy

Dictate comments, docs, and commands in VS Code

By Bob·

VS Code is the most popular code editor, but it has no built-in voice dictation. Microsoft's VS Code Speech extension exists, but it requires an internet connection and only works within specific VS Code features. Hearsy takes a different approach. It runs locally on your Mac, transcribes your voice in under 200 milliseconds, and pastes text into any VS Code field -- editor, terminal, search bar, commit input, or source control panel. No extensions needed.

Step-by-step setup

  1. 1

    Open VS Code with your project

    Launch VS Code and open the workspace or file you're working on. You can dictate into any text field: the editor, terminal, search bar, commit message input, or extension panels.

  2. 2

    Place your cursor in the target field

    Click where you want text to appear. This could be inside a code comment, a markdown file, the terminal prompt, the Git commit message box, or the search bar.

  3. 3

    Press your Hearsy hotkey

    Activate Hearsy with your keyboard shortcut (default: Fn twice or a custom hotkey). The menu bar indicator shows that Hearsy is recording.

  4. 4

    Speak naturally

    Say what you want to type. Describe a function, explain a bug, dictate a terminal command, or narrate documentation. Hearsy handles punctuation and capitalization for you.

  5. 5

    Press the hotkey again to finish

    Tap the hotkey once more. Hearsy transcribes your speech on-device, optionally applies AI enhancement, and pastes the result into VS Code at your cursor position.

Works in Every App on Your Mac

Hearsy pastes transcribed text wherever your cursor is — Gmail, Cursor, Claude, Slack, and hundreds more.

Why use Hearsy for VS Code?

Developers spend a surprising amount of time in VS Code writing things that aren't code: comments explaining complex logic, commit messages, documentation, search queries, terminal commands. These tasks are all text input, and typing them out slows you down. Speaking is 3-4x faster.

Hearsy works at the macOS level, not as a VS Code extension. This means it doesn't depend on VS Code's extension API, doesn't need updates when VS Code changes, and works identically in every text field -- including the integrated terminal, where most extensions can't operate. It also means zero configuration inside VS Code itself.

All transcription happens on your Mac. Your voice, your code context, and your project details stay on your computer. For teams with strict data policies or developers working on proprietary software, this is a meaningful difference from cloud-based dictation services. The optional AI enhancement cleans up your speech into polished text locally with Qwen, or through Claude/OpenAI APIs if you prefer.

When to use voice dictation in VS Code

Code comments and inline documentation

Good comments explain why, not what. Speaking your reasoning out loud while looking at the code produces more thoughtful, detailed comments than rushing to type something short.

Terminal commands

Complex git commands, Docker operations, and build scripts with multiple flags are tedious to type. Dictate them into VS Code's integrated terminal and review before pressing Enter.

Commit messages

Detailed commit messages help your team understand changes months later. Dictate what you changed and why right after finishing the work, while the context is still in your head.

Markdown and README files

Technical writing is where dictation saves the most time. Speak through setup instructions, API documentation, or project overviews, and let AI enhancement handle the formatting.

Accessibility for developers with RSI

Repetitive strain injuries are common among developers. Voice dictation lets you keep coding without aggravating wrist and hand pain from hours of typing.

Tips for better results

  • Dictate markdown documentation directly in .md files. Speaking produces longer, more detailed explanations than most developers write when typing.

  • Use Hearsy in the integrated terminal for long or complex commands. Instead of typing a multi-flag CLI command, speak it naturally and let Hearsy paste it at the prompt.

  • For commit messages, open the Source Control panel, click the message input, and dictate a summary of your changes. AI enhancement formats it into a clean, conventional commit message.

  • Dictate search queries in VS Code's search bar (Cmd+Shift+F). Speaking a natural description of what you're looking for can be faster than constructing a regex pattern from scratch.

  • Switch to the Whisper engine when writing documentation that includes technical terms from non-English languages. It handles 99+ languages and specialized vocabulary well.

  • Pair Hearsy with VS Code's Copilot or other AI extensions. Dictate a detailed comment above a function, and the AI assistant uses it as context to generate better code suggestions.

Frequently asked questions

Does VS Code have built-in voice dictation?

No. VS Code does not include native voice dictation. Microsoft offers a VS Code Speech extension, but it requires an internet connection and only works in limited contexts. Hearsy works in every VS Code text field and processes speech entirely on your Mac.

Do I need to install a VS Code extension for Hearsy?

No. Hearsy is a macOS menu bar app that works at the operating system level. It pastes text wherever your cursor is placed, so it works in VS Code, the terminal, and every other Mac app without any extensions or plugins.

Can I dictate into VS Code's integrated terminal?

Yes. Place your cursor in the terminal, activate Hearsy, and speak. The transcribed text is pasted at the terminal prompt. This is useful for long CLI commands, git operations, and scripted workflows.

Is dictation accurate enough for technical content?

Hearsy's Parakeet engine handles common programming terms, technical vocabulary, and natural speech accurately. For specialized jargon or non-English technical terms, the Whisper engine with 99+ language support may work better. AI enhancement further cleans up formatting and punctuation.

Does voice input work with VS Code Remote or SSH sessions?

Yes. Hearsy operates on your local Mac and simulates a paste keystroke. It doesn't matter whether VS Code is running a local workspace, a remote SSH session, or a Dev Container -- the text is pasted into whatever field has focus.

How does Hearsy compare to macOS built-in dictation in VS Code?

macOS dictation sends audio to Apple's servers for processing, introduces noticeable latency, and sometimes struggles with technical vocabulary. Hearsy processes everything locally in under 200 milliseconds, supports AI enhancement for cleaner output, and gives you a consistent experience tuned for productivity.

More workflows

Ready to Try Voice Dictation?

Hearsy is free to download. No signup, no credit card. Just install and start dictating.

Download Hearsy for Mac

macOS 14+ · Apple Silicon · Free tier available