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

Snippet Control

daniel68045

|
33 installs
| (1) | Free
Generate and manage reusable code snippets in Visual Studio Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Snippet Control

A VS Code (version 1.75.0 or higher) extension to generate, delete, import and export code snippets

Commands

Generate

  1. Highlight the code you want to save as a snippet

  2. Open the Command Palette (Cmd + Shift + P / Ctrl + Shift + P)

  3. Select Generate Code Snippet

  4. Provide a name (prefix) and description for the snippet when prompted

  5. The snippet will be saved globally and added to SavedSnippets.md in your project

Import

  1. Open the Command Palette

  2. Select Import External Snippets

  3. Choose a saved JSON snippet file you want to import

  4. Specify the language for the imported snippets when prompted

  5. The snippets will be added globally and logged in SavedSnippets.md

Export

  1. Open the Command Palette

  2. Select Export Snippets

  3. Choose a location to save the exported JSON file

Delete

  1. Open the Command Palette

  2. Select Delete Snippet

  3. Choose the snippet file (e.g., javascript.json) to delete from

  4. Select the specific snippet to remove

Example Workflow

  1. Generate a Snippet:
  • Highlight a commonly used function

  • Run Generate Code Snippet

  • Provide a name and description

  1. Import External Snippets:
  • Upload a JSON file with snippets from another project

  • Use Import External Snippets to add them to your global collection/md file

  1. Export Snippets:
  • Run Export Snippets to save your current snippets in your md file locally
  1. Delete Unused Snippets:
  • Use Delete Snippet to remove snippets you no longer need

Feedback

  • Found a bug? Submit an issue

  • Want to contribute? Fork the repository and submit a pull request

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