VS Code Extension
The SnippetBook VS Code extension puts your full snippet library right in the editor sidebar — no browser tab needed.
Installation
Install from the marketplace you use:
- VS Code / Cursor / Windsurf — Install from VS Code Marketplace
- VSCodium / open-source editors — Install from Open VSX Registry
Or search “SnippetBook” in the Extensions panel inside VS Code and click Install.
What it does
- Browse your snippets in a dedicated sidebar panel
- Real-time search — find snippets as you type
- Insert at cursor — one click inserts the code at your current cursor position
- Copy to clipboard — copy any snippet with a single click
- Create snippets — right-click a selection → Save to SnippetBook
- Edit snippets — edit in the panel without leaving VS Code
Requirements
- VS Code
v1.85.0or later - A SnippetBook account (sign up free)
Signing in
- Click the SnippetBook icon in the Activity Bar (left sidebar)
- Click Login with Google in the panel
- Your browser opens the SnippetBook sign-in page
- Complete Google sign-in
- The browser confirms “✓ Logged in” — return to VS Code
Your session is stored securely and stays active for 30 days.
Saving a selection
- Select any code in the editor
- Right-click → Save to SnippetBook
- The sidebar opens with a pre-filled form containing your selection and the detected language
- Add a title and click Add snippet
You can also use the Command Palette: SnippetBook: New Snippet.
Inserting a snippet
- Click the SnippetBook icon in the Activity Bar
- Search or scroll to the snippet you want
- Click Insert — the code is pasted at your cursor in the active editor
Available commands
All commands are accessible via the Command Palette (Ctrl+Shift+P):
| Command | Description |
|---|---|
SnippetBook: Login |
Sign in to your account |
SnippetBook: Logout |
Sign out and clear credentials |
SnippetBook: New Snippet |
Open the create form in the sidebar |
Save to SnippetBook |
Save your current selection (also in right-click menu) |
Signing out
Run SnippetBook: Logout from the Command Palette. Your credentials are cleared and the panel returns to the sign-in screen.