SnippetBox
A VS Code extension for saving, organizing, and reusing code snippets locally.
Note: This extension is in early development and may have bugs or incomplete features.
Features
- Save Snippets - Select code in the editor, right-click, and save it as a reusable snippet
- Organize by Language - Snippets are automatically grouped by programming language
- Tree View Sidebar - Browse your snippets in a hierarchical view (language → snippets)
- View with Syntax Highlighting - Open snippets in a webview panel with full syntax highlighting
- Add Notes - Attach optional notes to your snippets for context
- Edit & Delete - Modify or remove snippets as needed
Usage
Save a Snippet
- Select code in the editor
- Right-click and choose "SnippetBox: Save Selection as Snippet"
- Enter a name for your snippet
View a Snippet
Click on any snippet in the SnippetBox sidebar to open it in a webview panel.
Delete a Snippet
Right-click on a snippet in the sidebar and select "Delete Snippet".
Requirements
No external dependencies. All data is stored locally in your workspace.
Supported Languages
The following languages have dedicated icons:
Other languages use a generic snippet icon.
TODO
- [ ] Add more language icons (Python, Go, Rust, Java, etc.)
- [ ] Add search/filter functionality for snippets
- [ ] Add export/import snippets feature
- [ ] Add global snippets (shared across workspaces)
- [ ] Add keyboard shortcuts for common actions
| |