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:

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.0 or later
  • A SnippetBook account (sign up free)

Signing in

  1. Click the SnippetBook icon in the Activity Bar (left sidebar)
  2. Click Login with Google in the panel
  3. Your browser opens the SnippetBook sign-in page
  4. Complete Google sign-in
  5. The browser confirms “✓ Logged in” — return to VS Code

Your session is stored securely and stays active for 30 days.


Saving a selection

  1. Select any code in the editor
  2. Right-click → Save to SnippetBook
  3. The sidebar opens with a pre-filled form containing your selection and the detected language
  4. Add a title and click Add snippet

You can also use the Command Palette: SnippetBook: New Snippet.


Inserting a snippet

  1. Click the SnippetBook icon in the Activity Bar
  2. Search or scroll to the snippet you want
  3. 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.