VS Code Extensions
Prompt Library Pro

Prompt Library Pro

by codewithjss

Personal AI prompt manager for VS Code to store, organize, search, tag, reuse, and insert prompts with templates and local SQLite storage.

Downloads

19

Rating

— (0)

Version

1.0.2

Last updated

Jun 14, 2026

Your personal AI prompt manager — store, organize, tag, search, and reuse prompts directly within VS Code.

Version VS Code License


✨ Features

Core

  • Persistent Storage — All prompts are saved in a local SQLite database that survives VS Code restarts
  • CRUD Operations — Add, edit, and delete prompts with a clean and intuitive sidebar interface
  • Copy to Clipboard — Click any prompt to copy it instantly, with automatic usage tracking
  • Insert at Cursor — Insert prompts directly into your active editor at the cursor position

Organization

  • Tags & Filtering — Add comma-separated tags to prompts and filter using clickable tag pills
  • Star & Pin — Star favorites and pin critical prompts to guarantee they appear at the top
  • Sort Options — Sort by Default, Date, Usage count, Alphabetical, or Starred
  • Full-Text Search — Search across prompt content and tags in real-time

Template System

  • Template Variables — Use {{variable}} syntax to create reusable prompt templates
  • Fill & Copy — Click the template icon to fill in each variable and copy the completed text
  • Visual Highlights — Template variables are highlighted in green for easy identification

Data Management

  • Export — Export your entire library as JSON or CSV
  • Import — Import prompts from a JSON file (great for backups or sharing)
  • Duplicate Detection — Prevents saving identical prompts with an info notification
  • Soft Delete + Undo — Deleted prompts can be restored within seconds
  • Database Cleanup — Purge soft-deleted prompts or remove unused entries older than 30 days

Productivity

  • Quick Pick — Press Cmd+Shift+L (Mac) / Ctrl+Shift+L (Windows/Linux) to instantly search, copy, insert, or fill prompts
  • Right-Click Save — Select any text in the editor → right-click → "Save to Prompt Library"
  • How to Use Guide — Click the ℹ️ info icon in the sidebar to open a beautifully designed feature guide

🚀 Getting Started

  1. Open the sidebar — Click the Prompt Library icon in the Activity Bar
  2. Add a prompt — Type in the input bar at the bottom and press Enter
  3. Or use the + button — Click the + icon in the panel title to add a prompt with tags
  4. Organize — Star, pin, and tag your prompts for quick retrieval

🧩 Template Variables

Create reusable templates with dynamic placeholders:

Write a {{language}} function that {{task}} and handles {{error_type}} errors

When you click the Fill Template icon, VS Code will prompt you for each {{variable}}. The filled text is then copied to your clipboard.


⌨️ Keyboard Shortcuts

Action Mac Windows / Linux
Quick Pick Prompt Cmd+Shift+L Ctrl+Shift+L
Command Palette Cmd+Shift+P Ctrl+Shift+P
Save prompt (sidebar input) Enter Enter

🔧 Available Commands

Open the Command Palette (Cmd+Shift+P on Mac / Ctrl+Shift+P on Windows/Linux) and search for:

Command Description
Prompt Library: New Prompt Add a new prompt with optional tags
Prompt Library: Refresh List Reload the prompt list from database
Prompt Library: Quick Pick Prompt Fast search & action on prompts
Prompt Library: Save to Prompt Library Save selected text as a prompt
Prompt Library: Export Prompts Export library as JSON or CSV
Prompt Library: Import Prompts Import prompts from a JSON file
Prompt Library: Database Cleanup Purge deleted or unused old prompts
Prompt Library: How to Use Open the interactive feature guide

🎯 Card Action Icons

Hover over any prompt card to reveal the action toolbar:

Icon Action
📋 Copy Copy prompt to clipboard & increment usage counter
📄 Fill Template Fill {{variables}} and copy (only shown for templates)
➕ Insert Insert prompt at cursor position in active editor
📌 Pin Pin prompt to top of list
⭐ Star Favorite the prompt
🏷️ Tags Add or edit comma-separated tags
✏️ Edit Modify the prompt text
🗑️ Delete Soft-delete with undo option

🗄️ Data Storage

Prompts are stored in a local SQLite database (prompts.db) within VS Code's global storage directory.

Schema

Field Type Description
id INTEGER Auto-incrementing primary key
prompt TEXT Full prompt text
tags TEXT Comma-separated tags
created_at DATETIME Creation timestamp
updated_at DATETIME Last modification timestamp
count INTEGER Number of times used/copied
starred INTEGER Star status (0 or 1)
pinned INTEGER Pin status (0 or 1)
deleted INTEGER Soft-delete flag (0 or 1)

💾 Ways to Save Prompts

  1. Sidebar Input Bar — Type in the bottom bar and press Enter
  2. New Prompt Button (+) — Click the + in the panel title to add with tags
  3. Right-Click → Save to Prompt Library — Select any text in the editor and right-click
  4. Quick Pick — Use Cmd+Shift+L (Mac) / Ctrl+Shift+L (Windows/Linux) to access the quick pick dialog

📦 Export / Import

Export

  1. Open the Command Palette → Prompt Library: Export Prompts
  2. Choose a save location
  3. Select format: JSON or CSV

Import

  1. Open the Command Palette → Prompt Library: Import Prompts
  2. Select a .json file
  3. All prompts from the file are added to your library

Tip: Export regularly to back up your prompt library. The exported JSON can be re-imported on any machine with the extension installed.


🛡️ Duplicate Detection

When you add a prompt that matches an existing one, you'll see an informational notification and the duplicate will not be saved. This prevents clutter and keeps your library clean.


🧹 Database Cleanup

Access via Command Palette → Prompt Library: Database Cleanup:

  • Permanently delete soft-deleted prompts — Purges all prompts in the trash
  • Delete prompts with 0 usage (older than 30 days) — Cleans up unused entries

🏗️ Development

Prerequisites

  • Node.js 18+
  • VS Code 1.89.0+

Build

npm install
npm run compile

Debug

Press F5 in VS Code to launch the Extension Development Host.


📝 License

MIT


🔗 Connect with Me

Platform Link
GitHub sivasubramoniam-js
LinkedIn Sivasubramoniam J S

Made with ❤️ by Siva