Visual interface for managing VSCode snippets with auto-copy functionality. Perfect for Claude Code users managing command snippets and personal code templates.
-
Two-layer snippet system:
- π VSCode Snippets - Read-only snippets from
.vscode/prompts.code-snippets - π User Snippets - Editable snippets from
.vscode/user-snippets.json
- π VSCode Snippets - Read-only snippets from
-
Auto-copy on interaction - Click anywhere on a snippet card to copy
-
Visual editing - Edit snippet names, prefixes, descriptions, and bodies inline
-
Search & filter - Find snippets by name, prefix, description, or body content
-
Source filtering - Filter by VSCode/User/All snippets
-
Import/export - Backup and restore your snippets as JSON
-
Dark/Light themes - Toggle between themes
-
Responsive grid - Adjust columns (1/2/4) based on your screen size
-
Height-optimized cards - More space for code, less for descriptions
# Clone the repository
git clone https://github.com/YOUR_USERNAME/claude-snippets-manager.git
cd claude-snippets-manager
# Install dependencies
npm install
# Start the server
npm startThe server will start at http://localhost:3456
# Navigate to your project root (where .vscode/ folder is)
cd /path/to/your/project
# Run the snippets manager
npx claude-snippets-managerCtrl/Cmd + N- Add new snippet/- Focus searchCtrl/Cmd + F- Focus searchEscape- Close modal or clear searchEnter(in editable field) - Save and close field- Click anywhere on card - Copy snippet body
| Endpoint | Method | Description |
|---|---|---|
GET /api/snippets |
GET | Load VSCode snippets (readonly) |
GET /api/user-snippets |
GET | Load user snippets (editable) |
PUT /api/user-snippets |
PUT | Save user snippets |
GET /api/health |
GET | Health check |
claude-snippets-manager/
βββ server.js # Express API server
βββ public/
β βββ index.html # Snippet viewer UI
βββ package.json # Dependencies
βββ README.md # This file
The manager looks for these files in your project's .vscode/ folder:
- VSCode Snippets:
.vscode/prompts.code-snippets(readonly) - User Snippets:
.vscode/user-snippets.json(editable)
If these files don't exist, the manager will create them automatically.
The snippet manager merges two data sources:
-
VSCode Snippets (
.vscode/prompts.code-snippets)- Displayed with orange π badge
- Read-only (cannot edit or delete)
- Can be duplicated to create editable copies
- Perfect for Claude Code command snippets
-
User Snippets (
.vscode/user-snippets.json)- Displayed with green π badge
- Fully editable (name, prefix, description, body)
- Can be deleted
- Auto-saved on every change
Every interaction with a snippet card copies the body to your clipboard:
- Click anywhere on the card (except duplicate/delete buttons)
- Focus on any editable field
- Hover shows "π Auto-copy" hint
- Success shows "β Copied!" overlay
This makes it impossible to miss copying a snippet.
For user snippets, click any field to edit inline:
- Name - Click title to rename
- Prefix - Click badge to change prefix
- Description - Click italic text to edit
- Body - Click code block to edit content
Press Enter to save, changes auto-sync to file.
Snippet cards are optimized for content visibility:
- Description: Max 2 lines with ellipsis overflow
- Body: 220px height to show more code
- Result: ~7x more code visible than description text
Select multiple snippets (click checkbox on hover) to:
- Delete multiple snippets at once
- Clear selection
- Export - Downloads all snippets as JSON (includes both layers)
- Import - Adds snippets from JSON file (won't override existing)
npm run dev # Uses nodemon for auto-reloadPORT=8080 npm startPerfect for managing your custom Claude commands:
- Store read-only Claude commands in
.vscode/prompts.code-snippets - Create editable personal variations in user snippets
- Quick-copy any command with a single click
- Search across all your commands instantly
Ideal for developers who want a visual interface for VSCode snippets:
- Visual editing instead of JSON files
- Auto-copy for quick insertion
- Search and filter across all snippets
- Import/export for sharing with team
Issue: "Error loading"
- Ensure server is running on port 3456
- Check that you're in a directory with a
.vscode/folder - Check browser console for errors
Issue: Changes not saving
- Check that you're editing User snippets (green badge), not VSCode snippets (orange badge)
- Check server logs for save errors
- Verify
.vscode/user-snippets.jsonis writable
Issue: Port already in use
- Use custom port:
PORT=8080 npm start - Or kill existing process:
lsof -i :3456thenkill -9 <PID>
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - see LICENSE file for details
Built for the Claude Code community. Enhances the developer experience when managing VSCode snippets and Claude commands.