A VS Code (version 1.75.0 or higher) extension to generate, delete, import and export code snippets
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
-
Found a bug? Submit an issue
-
Want to contribute? Fork the repository and submit a pull request