Stop managing complex JSON snippet files. CrudID allows you to capture code patterns directly from your editor and turn them into reusable templates with zero configuration.
Shortcuts to Start Recording
Method 1: Select code, right-click, and select "CrudID: Record Snippet".
Method 2: Open the Command Palette (Ctrl+Shift+P) and type "CrudID: Record".
To Insert: Press Ctrl+Shift+I (Windows/Linux) or Cmd+Shift+I (Mac) to search and deploy snippets.
Features
Zero-Config Capture: Transform any code selection into a template instantly without opening a JSON file.
Smart Variable Detection: Automatically detects class and file names to suggest dynamic ${TM_FILENAME_BASE} variables.
Snippet Vault: A dedicated sidebar panel to preview code, copy to clipboard, or delete patterns.
Workspace Sync: Create a .crudid folder in your project root to share snippets with your team via Git.
Native Variable Support: Fully supports tab-stops, placeholders, and standard VS Code variables.
Context Menu Integration: Clean right-click menu options for a seamless workflow.
Installation
Open VS Code and search for CrudID in the Extensions view, or install via command line:
ext install id-labs.crudid
Usage Guide
Recording a Snippet
Select the code block you want to reuse.
Right-click and choose "CrudID: Record Snippet".
Provide a trigger keyword (e.g., api-call).
The pattern is now saved to your library.
Inserting a Snippet
Hit Ctrl+Shift+I / Cmd+Shift+I.
Select your snippet from the dropdown.
The code expands at your cursor with tab-stops ready.
Commands
Command
Shortcut
Description
CrudID: Record Snippet
Context Menu
Record selected code
CrudID: Insert Snippet
Ctrl+Shift+I
Search and deploy snippets
CrudID: Refresh Vault
Sidebar
Sync the Snippet Vault view
What's New?
Version 1.0.1
[FIX] Removed internal development and setup instructions.
[NEW] Enhanced detection logic for ${TM_FILENAME_BASE} variables.
[DOCS] Added comprehensive usage and command guide.