Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Snippet Vault | cloakNew to Visual Studio Code? Get it now.
Snippet Vault | cloak

Snippet Vault | cloak

BaZz

|
3 installs
| (0) | Free
Save, search, and run reusable code & terminal snippets, plus mask, autocomplete, and hover-peek .env secrets — all from the VS Code sidebar.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Snippet Vault

Save, manage, search, and run your personal code and terminal snippets — right inside VS Code.

Code Snippets sidebar view

Features

💾 Save code selections as snippets · 📟 Terminal snippets with placeholders · 🗂️ Sidebar grouped by language/category · ⚡ IntelliSense autocompletion · 🔍 Fuzzy search & filters · ⌨️ Keyboard shortcuts · ✏️ In-place editing · 🔄 Import/export as JSON · 🔐 .env cloaking & hover peeking · 🐙 Status bar shortcut to your repo's remote


Getting Started

  1. Click the Snippet Vault icon in the Activity Bar.
  2. Select code, press Cmd+Shift+S / Ctrl+Shift+S to save your first snippet.

Code Snippets

  • Save: select code → right-click Snippet Vault: Save Selection ✨ (or Cmd/Ctrl+Shift+S). You'll be asked for a name, prefix, description, and language.
  • Insert: via Quick Pick (Cmd/Ctrl+Shift+I), a sidebar click, or by typing the snippet's prefix for IntelliSense.
  • Tab stops: full VS Code snippet syntax ($1, ${1:placeholder}, $0) is supported.

Terminal Snippets

Running a terminal snippet with placeholders

Add via Add Terminal Snippet in the command palette or the + button. Wrap parts of a command in {curly braces} for runtime placeholders (e.g. docker run -p {port}:{port} {image}), then click the snippet to run it — you'll be prompted for each value.

Search & Filtering

Click the 🔍 icon in either sidebar view. Supports fuzzy matching (clg → console.log) and field filters: @language:typescript, @category:git, or combined with free text.

Keyboard Shortcuts

Action Mac Windows/Linux
Save selection as snippet Cmd+Shift+S Ctrl+Shift+S
Insert snippet (Quick Pick) Cmd+Shift+I Ctrl+Shift+I

Commands

Save Selection · Insert Snippet (Quick Pick) · Add/Run Terminal Snippet · Edit/Delete Snippet · Search/Clear Search (code & terminal) · Export/Import Snippets · Refresh Snippets · Dotenv: Cloak Color/Icon/Mask Text · Dotenv: Enable Autocloaking

Import & Export

Use the ☁ upload/download icons in the sidebar toolbar to back up, share, or migrate your snippet library as JSON.

.env Cloaking

.env values cloaked in the editor

  • Syntax highlighting for .env* and .flaskenv files.
  • Values are auto-masked on open; toggle per-file via the CodeLens link.
  • Customize mask color, gutter icon, and mask text via the Dotenv: Cloak Color/Icon/Mask Text commands or settings.
  • Autocompletion and hover "secret peeking" for process.env., import.meta.env. (dot or bracket), os.environ[, ENV[, getenv(, and equivalents in Go, Java, C#, and Rust — pulled live from every .env file in your workspace.

Remote Repo Shortcut

In a git repo with an upstream branch, a Go to Repo item appears in the status bar to open the repo in your browser or copy its HTTPS/SSH URL.

Extension Settings

Snippet Vault settings

Setting Default Description
snippetVault.confirmDelete true Confirm before deleting a snippet
snippetVault.showNotifications true Show toast notifications
snippetVault.dotenv.cloakColor #E2C08D Cloak mask/gutter icon color
snippetVault.dotenv.cloakIcon lock Gutter icon (lock, eye, key, shield, dot, star, diamond, warning, snippet)
snippetVault.dotenv.cloakMaskText •••••••• Text shown over cloaked values (e.g. ********, [REDACTED])
snippetVault.dotenv.enableAutoCloaking true Auto-cloak .env values on open

Requirements

VS Code v1.110.0 or newer.

Release Notes

0.0.5 — Configurable cloak mask text; import.meta.env["KEY"] bracket support; fixed Edit Snippet from the sidebar context menu; .env cloaking; status bar repo shortcut. 0.0.4 — Improved fuzzy search accuracy. 0.0.1 — Initial release.

Contributing

PRs and suggestions welcome — open an issue first to discuss.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft