Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Snippet ComposerNew to Visual Studio Code? Get it now.
Snippet Composer

Snippet Composer

Aditya_Tiwari

|
153 installs
| (1) | Free
Modular, Multi-File Snippet Management for VSCode
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Snippet Composer 📝

Visual Studio Marketplace Version Visual Studio Marketplace Downloads Visual Studio Marketplace Rating License

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.

Multi-File Snippets

Powerful Variable System

Define custom variables with default values and optional flags 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
  • {{ComponentName|snakecase}} - Convert to snake_case (e.g., MyComponent → my_component)
  • {{ComponentName|kebabcase}} - Convert to kebab-case (e.g., MyComponent → my-component)
  • {{ComponentName|pascalcase}} - Convert to PascalCase (e.g., my component → MyComponent)

Visual Editor

No more hand-editing JSON files! Our intuitive editor provides syntax highlighting, auto-completion, and real-time preview with theme-aware Monaco editor.

Visual Editor

Organized Management

  • 📂 Folder organization with nested subfolders
  • 🏷️ Tag-based filtering with auto-complete suggestions
  • 🔍 Fast search capabilities with snippet filtering
  • 🔄 Drag-and-drop reordering of files within snippets
  • ⌨️ Keyboard shortcuts (Ctrl/Cmd+S to save)

Multi-Root Workspace Support

When working with multiple workspace folders, Snippet Composer lets you:

  • Select the target folder when inserting snippets
  • Right-click any folder in Explorer and select "Insert Snippet Here"

File Overwrite Protection

Before creating files, you'll be warned if files already exist with options to:

  • Overwrite - Replace existing files
  • Skip Existing - Only create new files
  • Cancel - Abort the operation

Cloud Sync (GitHub Gist)

Sync your snippets across devices using GitHub Gist:

  1. Authenticate with GitHub
  2. Use "Upload to Gist" to save your snippets
  3. Use "Download from Gist" on other devices

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

  1. Open VS Code
  2. Click on the Extensions icon in the Activity Bar
  3. Search for "Snippet Composer"
  4. Click Install

From Command Line

code --install-extension Phantasm.snippet-composer

🎮 Usage

Creating a new snippet:

  1. Click the Snippet Composer icon in the Activity Bar
  2. Click the "+" button to create a new snippet
  3. Fill in the details, add files, and define variables
  4. Click "Save Snippet"

Inserting a snippet:

  1. Right-click in the explorer view or editor
  2. Select "Insert Snippet" from the context menu
  3. Choose your snippet from the list
  4. Fill in the variable values when prompted

Managing folders:

  1. Right-click on any folder in the Snippets Explorer
  2. Use "Rename Folder" or "Delete Folder" options
  3. 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
  "snippetComposer.gist.id": ""                // GitHub Gist ID for cloud sync (auto-set)
}

🔗 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

Variable Transformations

Use built-in transformations to manipulate variable values:

{{ComponentName|lowercase}}  => mycomponent
{{ComponentName|uppercase}}  => MYCOMPONENT
{{ComponentName|capitalize}} => Mycomponent
{{ComponentName|camelcase}}  => myComponent
{{ComponentName|snakecase}}  => my_component
{{ComponentName|kebabcase}}  => my-component
{{ComponentName|pascalcase}} => MyComponent

Default Values & Optional Variables

Variables can have default values that pre-fill the input prompt. Mark variables as optional to allow blank values.

Snippet Import/Export

Share snippets with your team or across devices:

  1. Click "Export Snippets" in the explorer view
  2. Save the JSON file
  3. On another device, click "Import Snippets"

Snippet Organization:

  1. Create folders and subfolders to categorize snippets
  2. Add tags for easier searching
  3. 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

  • Report Issues

📝 Release Notes

1.1.0 (Latest)

  • New Variable Transformations: Added snakecase, kebabcase, and pascalcase transformations
  • Variable Default Values: Variables can now have default values and be marked as optional
  • Multi-Root Workspace Support: Select target folder when inserting snippets in multi-root workspaces
  • Explorer Context Menu: Right-click folders in Explorer to "Insert Snippet Here"
  • File Overwrite Protection: Warning when files already exist with Overwrite/Skip/Cancel options
  • Drag-and-Drop File Reordering: Reorder files within snippets by dragging
  • Tag Auto-Complete: Suggestions from existing tags when adding new tags
  • Keyboard Shortcuts: Ctrl/Cmd+S to save in snippet editor
  • Theme-Aware Monaco Editor: Editor adapts to VS Code's light/dark theme
  • Search/Filter Snippets: Search command in tree view toolbar to filter snippets
  • Duplicate Snippet: Context menu action to clone snippets
  • Export Single Snippet: Export individual snippets to JSON
  • GitHub Gist Sync: Upload/download snippets to GitHub Gist for cloud sync

1.0.1

  • Bug fixes and stability improvements

1.0.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

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft