All posts

Visual Studio Code is the most popular code editor in the world, used by millions of developers daily. Most of them never think about voice input because coding is inherently a keyboard-driven activity. You need precise control over syntax, symbols, and indentation that voice cannot easily provide.

But a surprising amount of what developers do in VS Code is not writing code at all. It is writing natural language: comments explaining complex logic, JSDoc or docstring documentation, README files, commit messages in the Source Control panel, messages in the integrated terminal, and notes in markdown files. These are all tasks where voice-to-text is dramatically faster than typing, and Steno makes it work seamlessly inside VS Code.

Why Apple Dictation Fails in VS Code

If you have tried using Apple's built-in dictation in VS Code, you know the problem. VS Code is an Electron app, which means it uses a custom text input implementation that Apple Dictation does not fully support. Dictation may work intermittently, fail to activate, insert text in the wrong location, or behave unpredictably with VS Code's multi-cursor and snippet features.

Steno avoids this problem entirely. It does not integrate with VS Code's text input system. Instead, it captures your audio, transcribes it via Groq's Whisper API, and pastes the result at your cursor position using the system clipboard. This works reliably in every part of VS Code: the editor, the integrated terminal, the Source Control commit message box, the search bar, extension input fields, and settings fields.

Use Cases Inside VS Code

Code Comments

Good comments are the ones developers skip writing because typing them takes too long relative to the perceived benefit. A function that took 30 minutes to write and debug deserves a comment explaining the approach, but who wants to spend another 5 minutes typing a paragraph about it?

With voice typing, that comment takes 15 seconds. Position your cursor on the line above the function, type your comment delimiter (// or # or /**), hold the Steno hotkey, and explain: "This function computes the shortest path between two nodes using a modified Dijkstra's algorithm that accounts for time-dependent edge weights. The edge weight function returns different values based on the time of day, which models traffic patterns. We precompute the weight lookups into a hash map for performance."

Release the hotkey, and you have a comment that will save the next developer (or your future self) significant time understanding the code. The barrier to writing it was so low that you actually did it, which is the real value of voice typing for comments.

Documentation and Docstrings

Writing function documentation is one of the most universally neglected tasks in software development. The reason is simple: typing out parameter descriptions, return value explanations, and usage examples is tedious. Voice typing eliminates the tedium.

Type your docstring opener (/** in JavaScript, """ in Python, /// in Rust), then hold the hotkey and dictate: "Authenticates a user against the OAuth provider and returns a session token. Takes an authorization code received from the OAuth callback and exchanges it with the provider for an access token. The access token is then used to fetch the user's profile information, which is matched against or creates a local user record. Returns a JWT session token on success, or throws an AuthenticationError if the code is invalid or the provider is unreachable. The token expires after 24 hours."

Format the output into your docstring style, and you have documentation that actually helps. The entire process took less time than writing a single line of documentation by hand.

Commit Messages in the Source Control Panel

VS Code's Source Control panel has a text input field for commit messages. Click into it, hold your Steno hotkey, and dictate a meaningful commit message: "Refactor the payment processing pipeline to use a strategy pattern instead of the if-else chain. Each payment method now has its own processor class that implements the PaymentStrategy interface. This makes it straightforward to add new payment methods without modifying the existing processing logic. Also adds comprehensive unit tests for each processor."

That commit message took ten seconds to dictate. It describes what changed, why, and what was added. Compare that to the "refactor payments" message you would have typed because writing the full explanation felt like too much effort.

The Integrated Terminal

VS Code's integrated terminal is where developers run git commands, build tools, test suites, and deployment scripts. Many of these commands involve typing natural language: git commit messages, grep search patterns, curl commands with long URLs, and SSH commands. Voice typing works in the terminal just like anywhere else in VS Code.

A particularly useful pattern is dictating git commit messages directly in the terminal. Type git commit -m ", hold the hotkey, speak your message, release, type the closing quote, and press Enter. The workflow feels natural and produces better commit history than quick-typed messages.

Markdown Files

Developers write a lot of markdown: README files, architecture decision records, design documents, wiki pages, and development notes. Markdown is pure text content with minimal formatting, making it ideal for voice dictation. You can speak entire sections of a document at natural speed and add the markdown formatting (headers, bullet points, code fences) afterward.

For longer documents, work section by section. Dictate the content for one section, add the formatting, then move to the next. This is faster than trying to type the content and formatting simultaneously, and the resulting prose tends to be more readable because you are focusing on explaining concepts rather than managing formatting.

Setting Up Steno for VS Code

There is no VS Code extension to install. Steno works at the macOS system level, so it is automatically available in every application including VS Code. The setup process is:

  1. Download Steno from stenofast.com and install it.
  2. Choose your hotkey during setup. Pick a key combination that does not conflict with your VS Code shortcuts. A good choice is a modifier key combination like Ctrl+Shift or a dedicated function key.
  3. Start using it. Click where you want text in VS Code, hold the hotkey, speak, release.

Steno runs in the menu bar and uses approximately 15MB of memory. It does not install any VS Code extensions, does not modify your settings, and does not run any background processes beyond the lightweight menu bar app.

Avoiding Hotkey Conflicts

VS Code has hundreds of keyboard shortcuts, and developers often add more through extensions. The key to using Steno effectively in VS Code is choosing a hotkey that does not conflict with any existing shortcuts.

Good options include:

Since Steno uses a hold-to-speak model, the hotkey only needs to be unique as a held key. It will not interfere with single-press shortcuts because Steno only activates on sustained hold.

Tips for Voice Typing in VS Code

Type the Syntax, Dictate the Content

The most effective workflow is a hybrid approach: type the structural elements (comment delimiters, function signatures, markdown headers, git commands) and dictate the natural language content (explanations, descriptions, documentation text). This plays to the strengths of both input methods.

Use It for Code Review in GitHub PRs

Many developers review pull requests in VS Code using the GitHub Pull Requests extension. The review comment fields accept paste, so Steno works for dictating code review feedback. Instead of typing "this could be better," dictate a thorough explanation of what you would change and why.

Dictate TODO Comments

TODO comments are a natural fit for voice typing. Type // TODO: then dictate: "Refactor this to use connection pooling once we upgrade to the new database driver. The current approach creates a new connection for each query, which works fine at our current scale but will become a bottleneck above approximately 100 concurrent requests." That context will be invaluable when someone finally addresses the TODO.

Getting Started

Download Steno free at stenofast.com. No VS Code extension needed, no configuration required. Install it, choose a hotkey, and start dictating. Your commit messages, comments, and documentation will improve immediately because the barrier to writing them properly has been removed. Steno Pro at $4.99 per month provides unlimited dictation for all-day use.