AICHE +CopilotCopilot Integration

Voice commands for Copilot

Speak your coding requirements to Copilot for better inline suggestions and chat responses.

Download AICHE
Works on:
macOSWindowsLinux

The short answer: open Copilot Chat in your editor, click into the prompt field, press ⌃+⌥+R (Mac) or Ctrl+Alt+R (Windows/Linux), speak for 30-60 seconds, and AICHE inserts the formatted prompt for Copilot to process.

The Comments-as-Prompts Problem

GitHub Copilot works in two ways. Inline suggestions appear as you type code. Copilot Chat answers questions and generates longer blocks. Both respond better to detailed context.

For inline suggestions, the best trick is writing a thorough comment above your code describing what you need. Copilot reads that comment and generates code that matches. But writing a 4-line comment with parameter descriptions, edge cases, and return value expectations takes real effort when you are typing. Most developers write one line and hope for the best.

With AICHE, you position your cursor, press the hotkey, and speak for 15 seconds. You get a comment block that gives Copilot everything it needs to generate the right implementation on the first try.

How to Set It Up

  1. Open VS Code, Visual Studio, JetBrains, or any editor with GitHub Copilot installed.
  2. For Copilot Chat, open the chat panel and click into the input field.
  3. Press your AICHE hotkey (⌃+⌥+R on Mac, Ctrl+Alt+R on Windows/Linux) to start recording.
  4. Speak your complete requirement, including context and constraints (example: "create a middleware function that validates JWT tokens from the Authorization header, checks expiration, verifies the issuer claim against our config, and returns a 401 with a specific error code if any validation step fails").
  5. Press the hotkey again. AICHE transcribes, applies Message Ready formatting, and inserts the text.
  6. Press Enter to send the prompt to Copilot Chat, or start typing below the comment for inline suggestions.

Dictating Comments for Better Inline Suggestions

This is the workflow that makes the biggest difference with Copilot. Before writing a function, dictate the specification as a comment block.

Position your cursor where the function will go. Start a comment block. Press your AICHE hotkey and describe the function: what it accepts, what it returns, how it handles errors, what edge cases matter. AICHE inserts a clean multi-line comment. Then start typing the function signature, and Copilot's inline suggestions will match your spoken specification closely.

This works because Copilot uses surrounding context to predict code. A detailed comment is the strongest context signal you can give it. Voice makes writing those comments practically free.

Using Copilot Chat for Refactoring

Copilot Chat works best for explaining code, writing tests, and refactoring existing functions. These tasks need context about what the code does, what is wrong with it, and what you want instead.

Select a function, open Copilot Chat, and dictate: "this function handles payment processing but it has no error handling for declined cards, no logging, and the retry logic is broken because it retries on non-retryable errors like invalid card numbers. Refactor it to separate retryable from non-retryable Stripe errors, add structured logging for each attempt, and return a typed result object instead of throwing."

That level of specificity typed out takes 3-4 minutes. Speaking it takes 20 seconds.

Heads-up: longer prompts produce better Copilot responses. Speak for 40-60 seconds to provide full context rather than abbreviated 10-second requests. The extra detail reduces back-and-forth.

Pro tip: when dictating comments for inline suggestions, speak the parameter types and return type explicitly. Saying "accepts a string email and returns a boolean" gives Copilot a stronger signal than just describing the behavior.

Result: context-rich prompts that take 8 minutes to type now take 45 seconds to speak, and Copilot generates more accurate implementations because your spoken comments include the edge cases and constraints that typed shorthand leaves out.

Do this now: open your editor with Copilot, add a comment block above an empty function, press your hotkey, and dictate a full specification including parameters, return type, and error handling. Watch Copilot's next suggestion match your spoken spec.

#copilot#ai-coding#voice-commands