Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>QuickPromptsNew to Visual Studio Code? Get it now.
QuickPrompts

QuickPrompts

Mark Phillipson

|
6 installs
| (0) | Free
To be able to use voice commands to apply quick prompts to selected code and or normal plaintext.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

QuickPrompts

QuickPrompts is a Visual Studio Code extension that allows you to select code or text and run it through a set of AI-powered quick prompts, returning the results directly in your editor. The extension streamlines your workflow by providing a variety of helpful prompts for code fixes, formatting, conversions, and more.

Features

  • Enhanced prompt selection with previews: When selecting prompts, you'll see a preview of the first 100 characters of each prompt's content, making it easier to choose the right prompt for your needs.
  • Smart category selection: Category selection shows the first 4 prompt names in each category with a count of additional prompts (e.g., "fix grammar, summarize text, translate, review code, +3 more"), providing better context for category selection.
  • Advanced search capabilities: Search functionality works across both category selection (by prompt names) and prompt selection (by prompt names and content), making it easy to find the right prompt quickly.
  • Run any prompt on selected text: Use the Command Palette to run any user-defined prompt on your current selection. Prompts are powered by OpenAI (gpt-4o) completions.
  • Prompt management UI: Add, edit, or delete prompts using a user-friendly, dark mode-compatible webview interface.
  • Persistent prompt storage: Prompts are stored in VS Code's global state and persist across sessions.
  • Import from Markdown: On first activation, prompts are imported from a markdown list and made available for editing.
  • OpenAI integration: Securely uses your OpenAI API key (from settings or environment variable) to generate completions.
  • QuickPick command: Instantly select and run any prompt via a single command (QuickPrompts: Run Prompt...).
  • Dark mode support: All UI is styled for a seamless experience in dark mode.
  • Robust error handling: Clear error messages for missing API keys, no selection, or OpenAI errors.

Requirements

  • Visual Studio Code version 1.70.0 or higher.
  • OpenAI API key (for AI-powered features). Set via quickprompts.openaiApiKey in settings or the OPENAI_API_KEY environment variable.
  • Alternatively, you can set your OpenAI API key as an environment variable named OPENAI_API_KEY.

Extension Settings

  • quickprompts.openaiApiKey: Set your OpenAI API key for completions.
  • quickprompts.openaiModel: (Optional) Set the OpenAI model to use for completions. Defaults to gpt-4o. Recommended: use the latest available OpenAI models such as gpt-4o or any current model listed in your OpenAI account. Avoid using expired or deprecated models.

Usage

  1. Select text/code in your editor.
  2. Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P).
  3. Run QuickPrompts: Run Prompt...:
    • If you have multiple categories, first select a category. You'll see the first 4 prompt names in each category to help you choose.
    • Then select a specific prompt. Each prompt shows a preview of its content (first 100 characters) to help you pick the right one.
    • You can search by typing prompt names or content at any step.
  4. The selected prompt will be applied to your selected text, and the result will replace your selection.
  5. To manage prompts, run QuickPrompts: Manage Prompts for a full-featured UI where you can add, edit, or delete prompts.

Known Issues

If you encounter any issues or bugs, please report them on the extension's GitHub repository. Known issues will be tracked and updated in this section to help prevent duplicate reports.

Release Notes

See CHANGELOG.md for details.


Extension Guidelines

For best practices and more information on developing VS Code extensions, refer to the Extension Guidelines.

Enjoy using QuickPrompts!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft