VS Code Workflow

How to Dictate in VS Code on Linux (Voice Coding Workflow)

Learn how to use Vocalinux for practical, low-friction voice coding in VS Code on Linux. This guide covers setup, toggle vs push-to-talk, editing workflows, and common fixes.

Why use voice coding in VS Code?

Voice dictation helps developers reduce repetitive typing, keep momentum during documentation, and lower hand strain. For most workflows, the sweet spot is hybrid: keyboard for syntax, voice for comments, explanations, notes, and refactors written in plain language.

Setup in 2 steps

Install Vocalinux

Follow the install guide, launch Vocalinux, and confirm your microphone and language are configured.

Open installation guide

Configure your activation shortcut

Pick a shortcut that does not conflict with VS Code keybindings. Most developers keep Ctrl-based activation for muscle-memory.

View shortcuts and commands

Recommended workflows

Toggle mode for quick dictation

Use toggle mode when you need short bursts: comments, TODO notes, commit message drafts, or quick variable descriptions.

  • Double-tap your shortcut to start and stop.
  • Best for short phrases between normal typing.
  • Great when context-switching between keyboard and voice.

Push-to-talk for continuous coding (recommended)

Use push-to-talk when writing longer explanations in docs, code reviews, and comments. Hold key to speak, release to stop.

  • Keeps accidental transcription low in noisy environments.
  • Predictable start/stop behavior for focused coding sessions.
  • Preferred by many developers for precise control.

Voice commands for code editing

Combine dictation with editing commands like punctuation and structure helpers to move faster through repetitive formatting.

  • Use commands like "new line", "tab", and "semicolon".
  • Treat voice as an editor assistant, not a full code generator.
  • Use keyboard for dense syntax-heavy sections.

VS Code-specific tips

  • Dictate comments first: inline comments and docstrings are ideal voice targets.
  • For strings, speak full sentence chunks and then fix quotes/escaping with keyboard.
  • Use "new line" and "tab" commands for indentation rhythm in blocks.
  • When writing markdown in VS Code, voice dictation is often faster than typing.

Troubleshooting

  • No text appears in VS Code: verify Vocalinux is active and the editor window is focused.
  • Shortcut conflicts: remap Vocalinux activation to avoid overlapping VS Code keybinds.
  • Unexpected punctuation: review your voice command phrases and disable commands if needed.
  • Low accuracy: use a quieter mic setup and test another model size/engine in settings.

Ready to voice-type in VS Code?

Install Vocalinux and use a hybrid keyboard + voice workflow that fits real-world Linux development.

Install Vocalinux