Snippet Vault
Save code you reuse and drop it into any file in two keystrokes. Snippet Vault also ships with a small library of ready-made lab programs.
Features
- Save a selection (or the whole file if nothing is selected) under a name you choose.
- Insert any saved snippet at your cursor, replacing the current selection.
- Open as new file to start a fresh editor with the snippet's language already set.
- Delete snippets you no longer need.
- Your snippets sync across machines when VS Code Settings Sync is on.
Built-in library
| Program |
Language |
| Frequency Reuse (cellular hexagon plot) |
Python |
| DSSS spreading and despreading |
Python |
| GSM A3 / A8 / A5 simulation |
Python |
| ESP32 setup steps |
Markdown |
| ESP32 Blink test |
Arduino C++ |
| ESP32 Wi-Fi scan |
Arduino C++ |
| ESP32 BLE scan (count) |
Arduino C++ |
| ESP32 BLE scan (name, MAC, RSSI) |
Arduino C++ |
Usage
Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P) and run:
| Command |
What it does |
Snippet Vault: Save Selection (or Whole File) |
Saves the selected code under a name |
Snippet Vault: Insert Snippet |
Pick a snippet and insert it |
Snippet Vault: Open Snippet as New File |
Opens the snippet in a new editor |
Snippet Vault: Delete My Snippet |
Removes one of your saved snippets |
You can also right-click in the editor to save a selection or insert a snippet.
Requirements
VS Code 1.85 or newer. Python and Arduino tooling are only needed to run the bundled programs.
Release notes
See CHANGELOG.md.
| |