Skip to content

Manage, organize, and instantly access AI prompts and clipboard history directly within VS Code.

License

Notifications You must be signed in to change notification settings

winterdrive/QuickPrompt

Repository files navigation

Quick Prompt – AI Prompt Manager & Clipboard History for VS Code

Visual Studio Marketplace Version Installs AI-Ready Context

繁體中文 | English

Quick Prompt - VS Code AI Prompt Manager & Clipboard History Interface


πŸš€ What is Quick Prompt?

Quick Prompt is a VS Code extension that helps developers manage, organize, and instantly access AI prompts and clipboard history. It combines a prompt library with clipboard tracking, allowing you to build a personalized database of high-quality prompts for ChatGPT, Copilot, and Claude without switching context.


πŸ”₯ New in v0.2.0: Version History System

Never lose a prompt iteration again. The new Version History System automatically tracks every change you make.

Version History Demo

Core Features

  • πŸ•’ Linear History: Automatic tracking of every save.
  • πŸ“Œ Milestones: Tag stable versions or important drafts.
  • ↩️ Soft Checkout: Restore old versions safely without overwriting immediately.

βš–οΈ Visual Diff View

One-click comparison between history and current state. Use the Diff View to verify changes before restoring.

Diff View Demo


✨ Key Features

πŸ“š Prompt Management

  • πŸ€– AI-Powered Titles: Automatic semantic title generation using local AI (Qwen1.5-0.5B).
  • 🎯 Lightning Fast Search: Press Alt+P to search prompts, hit Enter to copy.
  • πŸš€ Quick Add: Right-click selected text β†’ "Quick Add Prompt" (or press Alt+Shift+S).
  • 🎨 Visual Interface: Sidebar displays popularity with icons (πŸ”₯/⭐/πŸ“).
  • ✏️ Native Editing: Edit prompts like regular files with full VSCode support.

πŸ•’ Version Control (New!)

  • Track Everything: Every change is recorded.
  • Smart Retention: Keeps history clean by pruning intermediate edits while preserving milestones.
  • Diff Comparison: Visually check what changed.

πŸ“‹ Clipboard History

  • Auto Capture: Never lose copied text. Tracks VSCode and external apps.
  • Smart Tracking: Usage counts and last used times help identify golden prompts.
  • Project Isolation: Workspace-specific prompt collections.

Feature Highlights

πŸ“Έ Screenshots (AI Generated)

Quick Search in Action

Quick Search Demo

Unified search interface for both prompts and clipboard history

Sidebar Management

Sidebar View

Organized view with prompts and clipboard history

πŸš€ Quick Start

First Time Setup

  1. Open any project folder in VSCode
  2. The extension will automatically create .vscode/prompts.json
  3. Press Alt+P (Mac: Opt+P) to start using

Basic Usage

Method 1: Quick Search (Recommended) ⚑

  1. Press Alt+P to open the unified search
  2. Browse Prompts and Clipboard History in one place
  3. Type keywords to filter
  4. Press Enter to copy to clipboard
  5. Paste anywhere with Ctrl+V

Method 2: Sidebar Operations πŸ“‹

  1. Click the Quick Prompt icon in the Activity Bar
  2. My Prompts section:
    • Click to copy
    • Right-click to move up/down
    • Inline buttons: Copy, Pin, Edit, Delete
  3. Clipboard History section:
    • Click to copy
    • Pin to convert to permanent prompt
    • Inline buttons: Copy, Pin, Edit, Delete

Icon Meanings

  • πŸ”₯: Hot (used >= 10 times)
  • ⭐: Frequent (used >= 5 times)
  • πŸ“: Normal (used > 0 times)
  • βšͺ: Unused
  • πŸ“Œ: Pinned

πŸ“ Managing Prompts

Adding Prompts

Method 1: Add from Selection (Fastest) πŸš€

  1. Select text in the editor
  2. Right-click β†’ "Quick Add Prompt" (or press Alt+Shift+S)
  3. Done! Title is auto-generated

Method 2: Smart Add Mode ⚑

  1. Click βž• Add button in sidebar
  2. In the input box:
    • Auto Mode: Paste content directly (auto-generates title)
    • Manual Mode: Use Title::Content format
  3. Done!

Method 3: From Clipboard History

  1. Find the item in Clipboard History
  2. Click the πŸ“Œ Pin button
  3. Automatically converts to permanent prompt

Editing Prompts

  • Click the ✏️ Edit button to open in native editor
  • Edit like a regular file
  • Press Ctrl+S to save
  • Full support for Undo/Redo, Auto Save, Format Document

Organizing Prompts

  • Pin: Click πŸ“Œ to pin important prompts to the top
  • Sort: Right-click β†’ Move Up/Down to manually arrange
  • Delete: Click πŸ—‘οΈ to remove (no confirmation needed)

Using Version History (New)

  1. View History: Expand any prompt in the sidebar.
  2. Compare: Click on any historical version to open the Diff View.
  3. Restore: Right-click a version and select Apply Version to bring it back.
  4. Milestones: Tag important versions (like "V1.0 Stable") to keep them safe forever.

πŸ“‹ Clipboard History

Auto Capture

The extension automatically captures clipboard content from:

  • VSCode editor: Instant capture when you copy
  • External apps: Captured when you switch back to VSCode
  • Background polling: Every 5 seconds (configurable)

Smart Filtering

  • βœ… Deduplication (no repeated entries)
  • βœ… Minimum length filter (default: 10 characters)
  • βœ… Excludes pure numbers
  • βœ… Auto-clean old items (default: 7 days)

Managing History

  • View: Check recent items in sidebar
  • Copy: Click to copy again
  • Pin: Convert to permanent prompt
  • Edit: Click edit to save as prompt and open editor
  • Delete: Remove individual items
  • Clear All: Click the clear button in sidebar title

βš™οΈ Configuration

Settings

Open VSCode Settings and search for "Quick Prompt":

Clipboard History

  • quickPrompt.clipboardHistory.enabled: Enable/disable auto tracking (default: true)
  • quickPrompt.clipboardHistory.maxItems: Maximum history items (default: 20)
  • quickPrompt.clipboardHistory.enablePolling: Enable background polling (default: true)
  • quickPrompt.clipboardHistory.pollingInterval: Polling interval in ms (default: 5000)
  • quickPrompt.clipboardHistory.minLength: Minimum content length (default: 10)
  • quickPrompt.clipboardHistory.autoCleanDays: Auto-clean after N days (default: 7)

AI Features

  • quickPrompt.ai.enabled: Enable/disable AI-powered features (default: true)
  • quickPrompt.ai.autoGenerateTitle: Automatically generate titles using AI (default: true)

File Location

  • Workspace Mode: .vscode/prompts.json (independent per project)
  • Fallback Mode: Uses extension directory if no workspace is open

Keyboard Shortcuts

Function Windows/Linux Mac
Search Prompt Alt+P Opt+P
Add from Selection Alt+Shift+S Opt+Shift+S

πŸ’‘ Best Practices

  1. Save on the Fly: See a useful prompt? Select and press Alt+Shift+S
  2. Use Clipboard History: Don't worry about losing copied prompts - they're auto-saved
  3. Pin Important Ones: Convert frequently used clipboard items to permanent prompts
  4. Organize Manually: Use right-click to arrange prompts in your preferred order
  5. Version Control: Add .vscode/prompts.json to Git to share with your team

🎯 Use Cases

For AI Development

  • Save frequently used ChatGPT/Copilot/Claude prompts
  • Quick access to debugging prompts
  • Organize code review templates

For Content Creation

  • Store writing prompts and templates
  • Quick access to formatting instructions
  • Manage translation prompts

For Team Collaboration

  • Share best prompts via Git
  • Standardize team communication with AI
  • Build a prompt library together

🀝 Recommended Companion

πŸ—‚οΈ VirtualTabs

Enhance your AI workflow.

Quick Prompt helps you manage what to tell the AI. Pair it with VirtualTabs to manage where the AI looks.

  • Manage Context: Group related files across directories regardless of location.
  • AI-Ready: Create precise file sets to paste into your LLM context.

Get VirtualTabs on VS Code Marketplace | Open VSX Registry


❀️ Support

If you find this extension helpful, please consider supporting the development!

ko-fi

πŸ“„ License

MIT License


Enjoy efficient prompt management! πŸš€

Made with ❀️ for AI developers

About

Manage, organize, and instantly access AI prompts and clipboard history directly within VS Code.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors