Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Workspace PinsNew to Visual Studio Code? Get it now.
Workspace Pins

Workspace Pins

Toolsmith Labs

|
1 install
| (0) | Free
Pin external files and folders into an Explorer tree without adding multi-root workspace folders.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Workspace Pins

Pin files and folders from outside the workspace into a collapsible Explorer tree without modifying .code-workspace files.

What It Does

  • Adds a Pins view to the Explorer sidebar (collapsed by default) plus Command Palette commands for quick access.
  • Pins external configs, notes, logs, and sibling folders alongside your workspace without converting your project to a multi-root workspace.
  • Expands pinned folders lazily via workspace.fs.readDirectory only when expanded, sorted folders first, excluding .git and node_modules by default, with a configurable per-folder child cap (2000 by default) and cycle-safe symlink handling.
  • Opens text files with showTextDocument and binary or large files via vscode.open.
  • Keeps missing paths visible with a warning icon and missing description instead of silently deleting them. A path that does not answer within 3 seconds (for example a stalled network mount) shows unreachable, and sockets, pipes and other non-regular entries show unavailable and are never opened.
  • Never modifies, moves, or deletes user files or folders; the only file written is .vscode/pins.json on explicit Pro user actions, using an atomic temp-file rename. Before every write the file on disk is hashed (SHA-256) and compared with the hash of the content your edit was based on; if they differ you are asked to overwrite, reload, or open the file.

Features (Free vs Pro)

Feature Free Pro
Explorer "Pins" tree view (collapsed by default) Included Included
Pin files and folders (picker, active file, Explorer context) Up to 15 pins Unlimited
Lazy folder expansion with excludes, sorting, and child cap Included Included
Unpin, rename label, reveal in OS, copy path, open to side Included Included
Missing path warnings without auto-removal Included Included
Named collapsible groups and drag-and-drop reorder Upgrade prompt Included
Per-workspace pin lists (workspaceState) Upgrade prompt Included
Shared .vscode/pins.json with ${userHome}, ${workspaceFolder}, ${env:NAME}, ~ Upgrade prompt Included
Import and export pins JSON Upgrade prompt Included

Commands

  • workspacePins.focus (Workspace Pins: Show Pins View): Focuses the Pins tree view in the Explorer.
  • workspacePins.pinFile (Workspace Pins: Pin File...): Prompts for one or more files to pin.
  • workspacePins.pinFolder (Workspace Pins: Pin Folder...): Prompts for one or more folders to pin.
  • workspacePins.pinActiveFile (Workspace Pins: Pin Active File): Pins the currently active editor file.
  • workspacePins.pinFromExplorer (Pin to Workspace Pins): Pins files or folders from the Explorer context menu.
  • workspacePins.unpin (Workspace Pins: Unpin): Removes a pin from the list without touching files on disk.
  • workspacePins.renamePin (Workspace Pins: Rename Pin Label): Sets or clears a custom display label for a pin.
  • workspacePins.revealInOS (Workspace Pins: Reveal in OS): Reveals a pinned item or child entry in the OS file manager.
  • workspacePins.copyPath (Workspace Pins: Copy Path): Copies the resolved path to the clipboard.
  • workspacePins.openToSide (Workspace Pins: Open to the Side): Opens a pinned or child file in a side editor group.
  • workspacePins.refresh (Workspace Pins: Refresh): Reloads pins and re-checks path availability.
  • workspacePins.createGroup (Workspace Pins: Create Group (Pro)): Creates a named collapsible group.
  • workspacePins.renameGroup (Workspace Pins: Rename Group (Pro)): Renames a group.
  • workspacePins.deleteGroup (Workspace Pins: Delete Group (Pro)): Deletes a group and ungroups its pins.
  • workspacePins.moveToGroup (Workspace Pins: Move Pin to Group (Pro)): Moves a pin into a group.
  • workspacePins.switchScope (Workspace Pins: Switch Active Pin List (Pro)): Switches between Global, Workspace, and Shared (.vscode/pins.json) pin lists.
  • workspacePins.movePinToScope (Workspace Pins: Move Pin to Another List (Pro)): Moves a pin between Global, Workspace, and Shared lists.
  • workspacePins.openWorkspacePinsFile (Workspace Pins: Open .vscode/pins.json (Pro)): Opens .vscode/pins.json in the editor.
  • workspacePins.trustSharedUnc (Workspace Pins: Trust Shared UNC Pins (Pro)): Allows the extension to check network (UNC) paths that come from the shared list for this workspace. Until then they show not checked.
  • workspacePins.importPins (Workspace Pins: Import Pins JSON (Pro)): Imports pins from a JSON file.
  • workspacePins.exportPins (Workspace Pins: Export Pins JSON (Pro)): Exports the active pin list to an untitled JSON editor.
  • workspace-pins.enterLicense (Workspace Pins: Enter License Key): Activates a Pro license key in VS Code SecretStorage.

Settings

  • workspacePins.exclude (string[], default [".git", "node_modules"], restricted in untrusted workspaces): Entry names or wildcard patterns excluded when expanding pinned folders.
  • workspacePins.allowedEnvVars (string[], default ["HOME", "USERPROFILE"], machine-scoped): The only environment variables ${env:NAME} may expand. A repository cannot widen this list.
  • workspacePins.maxFolderChildren (integer, default 2000, restricted in untrusted workspaces): Maximum direct children rendered when expanding a pinned folder.
  • workspacePins.largeFileThresholdKb (integer, default 5120, restricted in untrusted workspaces): Threshold in KB above which files open via vscode.open.
  • workspace-pins.apiBaseUrl (string, default "", machine-scoped): Override the licensing API base URL (must use https://).
  • workspace-pins.webBaseUrl (string, default "", machine-scoped): Override the web storefront base URL (must use https://).

Shared Pins File

  • .vscode/pins.json accepts comments and trailing commas. $schema and unknown keys (top level, on groups and on pins) are kept when the extension rewrites the file. Comments are not: before the first rewrite of a file that contains comments you are asked to confirm, and the answer is remembered for the session.
  • Paths may use ${userHome}, ${workspaceFolder}, ~ and ${env:NAME}. Tokens are kept as written when a pin moves between lists, and the tree shows the raw path for pins that contain tokens.
  • ${env:NAME} only expands variables named in workspacePins.allowedEnvVars. On Windows, a path that turns into a UNC share only because of an environment variable is rejected so a shared file cannot make your machine contact an arbitrary host.
  • The file is limited to 1 MB and 1000 pins. It is read only if it is a regular file, and at most 1 MB plus one byte is read. A larger, unreadable or non-regular file (directory, device, pipe) is reported as corrupt and is never overwritten.
  • Network (UNC) paths in the shared list are not checked automatically on Windows, so opening a repository cannot make your machine contact a host named in pins.json. They show not checked until you run Workspace Pins: Trust Shared UNC Pins for the workspace.
  • Saving to Workspace or Shared lists is refused with a message if Pro has lapsed or the workspace is untrusted; nothing is written.
  • A symlinked pins.json is never written through, and leftover .pins.json.*.tmp files from an interrupted write are removed on load.
  • The active list is remembered per workspace. If a Pro license lapses, workspace and shared lists are hidden (not deleted) and a notice says so once per session.

Privacy and Data Handling

Data Where Retention
Global and per-workspace pin lists Local VS Code globalState / workspaceState Until unpinned or uninstalled
Shared workspace pin list (Pro) .vscode/pins.json in trusted workspaces Managed by user / repository
License key, product ID, machine ID hash Sent to licensing API (workspace-pins.apiBaseUrl) on Pro activation/refresh Active license lifetime
Telemetry None (collectsTelemetry: false) 0 days

Workspace Pins collects zero telemetry and never transmits file contents or pinned paths.

Offline Behaviour

  • Pinning, tree expansion, path resolution, grouping, drag-and-drop, and .vscode/pins.json management all work completely offline.
  • Paid licenses are verified locally using the bundled Ed25519 public key with a 14-day offline grace window.
  • In untrusted workspaces, globalState pins continue working while .vscode/pins.json reading and writing are disabled.

Pricing

Workspace Pins is free to use for up to 15 global pins. Pro unlocks unlimited pins, named collapsible groups, drag-and-drop reorder, per-workspace lists, .vscode/pins.json team sharing with portable path variables, and JSON import/export.

View plans and buy. After purchase, sign in to your account to copy your license key, then run Workspace Pins: Enter License Key.

Support

Report issues or request help at github.com/toolsmith-labs/support.

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