Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>CopyShelfNew to Visual Studio Code? Get it now.
CopyShelf

CopyShelf

Ethan Clawsie

|
2 installs
| (0) | Free
A persistent, portable shelf of reusable text snippets
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CopyShelf

CopyShelf is a small, offline VS Code extension for keeping reusable text close at hand. Saved items live in a readable copyshelf.json file and appear in their own Activity Bar view.

Using CopyShelf

  • Choose Add Item to add a new snippet directly inside the sidepanel.
  • Click the drop-down arrow (or item title) to expand and preview the text snippet.
  • Click the copy icon to copy the full snippet text to your clipboard.
  • Click the edit icon to edit the item title and text directly in the sidepanel without opening a new file tab.
  • Click the trash icon to delete an item (with confirmation).
  • Use the view's title menu to open, import, or export the JSON storage file.

The command palette also exposes every action under CopyShelf.

Storage and portability

CopyShelf stores data in copyshelf.json inside VS Code's global storage directory for this extension. CopyShelf: Open Storage File opens the exact file, so its location is always easy to find.

Imports can replace the current shelf or merge with it. A merge keeps every imported item and assigns a new ID if an imported ID already exists.

Example:

{
  "version": 1,
  "items": [
    {
      "id": "a-unique-id",
      "title": "SSH Server",
      "text": "ssh user@example.com"
    }
  ]
}

Malformed files are never silently overwritten. Fix the JSON manually or import a valid CopyShelf file.

Development

npm install
npm run compile
npm test

Press F5 in VS Code to launch an Extension Development Host.

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