Snippet Composer 📝

Supercharge your workflow with modular, multi-file snippet management for VS Code
🚀 Features
Multi-File Snippet Templates
Create complex snippets that generate multiple files at once - perfect for component libraries, design patterns, and boilerplate code.

Powerful Variable System
Define custom variables to make your snippets truly reusable. Transform variables with built-in modifiers:
{{ComponentName}}
- Use as provided
{{ComponentName|lowercase}}
- Convert to lowercase
{{ComponentName|uppercase}}
- Convert to uppercase
{{ComponentName|capitalize}}
- Capitalize first letter
{{ComponentName|camelcase}}
- Convert to camelCase
Visual Editor
No more hand-editing JSON files! Our intuitive editor provides syntax highlighting, auto-completion, and real-time preview.

Organized Management
- 📂 Folder organization
- 🏷️ Tag-based filtering
- 🔍 Fast search capabilities
- 🔄 Drag-and-drop reordering
Built-in Snippet Library
Get started immediately with pre-made snippets for popular frameworks and languages:
- React components and hooks
- Express API routes
- TypeScript classes and interfaces
- HTML/CSS templates
- ... and more!
📥 Installation
From VS Code Marketplace
- Open VS Code
- Click on the Extensions icon in the Activity Bar
- Search for "Snippet Composer"
- Click Install
From Command Line
code --install-extension Phantasm.snippet-composer
🎮 Usage
Creating a new snippet:
- Click the Snippet Composer icon in the Activity Bar
- Click the "+" button to create a new snippet
- Fill in the details, add files, and define variables
- Click "Save Snippet"
Inserting a snippet:
- Right-click in the explorer view or editor
- Select "Insert Snippet" from the context menu
- Choose your snippet from the list
- Fill in the variable values when prompted
Managing folders:
- Right-click on any folder in the Snippets Explorer
- Use "Rename Folder" or "Delete Folder" options
- Drag and drop snippets between folders to reorganize
⚙️ Configuration
Customize Snippet Composer through VS Code settings:
"snippetComposer.storage.location": "local", // Where to store snippets: "local" or "cloud"
"snippetComposer.author": "Your Name" // Default author name for snippets
🔗 Use Cases
React Developers: Generate component files with tests, styles, and stories
Backend Developers: Create API routes, controllers, and models in one go
Team Leads: Standardize code patterns across your team
Open Source Maintainers: Provide official snippets for your libraries
🛠️ Advanced Features
Use built-in transformations to manipulate variable values:
{{ComponentName|lowercase}} => mycomponent
{{ComponentName|capitalize}} => Mycomponent
Snippet Import/Export
Share snippets with your team or across devices:
- Click "Export Snippets" in the explorer view
- Save the JSON file
- On another device, click "Import Snippets"
Snippet Organization:
- Create folders and subfolders to categorize snippets
- Add tags for easier searching
- Drag and drop to rearrange
📊 Why Use Snippet Composer?
Feature |
VS Code Snippets |
Snippet Composer |
Multi-file generation |
❌ |
✅ |
Variable system |
Limited |
Advanced |
Visual editor |
❌ |
✅ |
Organization |
Flat files |
Folders & Tags |
Sharing |
Manual |
Import/Export |
Preview |
❌ |
✅ |
🤝 Contributing
Contributions are welcome! Check out our contributing guidelines to get started.
📣 Support
📝 Release Notes
0.1.0
- Initial release
- Multi-file snippet support
- Variable system with transformations
- Visual editor with syntax highlighting
- Folder organization
- Built-in snippet library
📜 License
MIT © Aditya Tiwari