A VS Code (version 1.75.0 or higher) extension to generate, delete, import and export code snippets
Commands
Generate
Highlight the code you want to save as a snippet
Open the Command Palette (Cmd + Shift + P / Ctrl + Shift + P )
Select Generate Code Snippet
Provide a name (prefix) and description for the snippet when prompted
The snippet will be saved globally and added to SavedSnippets.md in your project
Import
Open the Command Palette
Select Import External Snippets
Choose a saved JSON snippet file you want to import
Specify the language for the imported snippets when prompted
The snippets will be added globally and logged in SavedSnippets.md
Export
Open the Command Palette
Select Export Snippets
Choose a location to save the exported JSON file
Delete
Open the Command Palette
Select Delete Snippet
Choose the snippet file (e.g., javascript.json ) to delete from
Select the specific snippet to remove
Example Workflow
- Generate a Snippet:
Highlight a commonly used function
Run Generate Code Snippet
Provide a name and description
- Import External Snippets:
- Export Snippets:
- Run
Export Snippets to save your current snippets in your md file locally
- Delete Unused Snippets:
- Use
Delete Snippet to remove snippets you no longer need
Feedback
| |