Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>ClipFile SSHNew to Visual Studio Code? Get it now.
ClipFile SSH

ClipFile SSH

xt2357

|
2 installs
| (0) | Free
Paste local files, folders and screenshots into a Remote-SSH workspace and insert their paths in your editor or terminal.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ClipFile SSH

Copy a file in Explorer or Finder, focus a remote terminal, and press Ctrl+Alt+V (Cmd+Alt+V on macOS). ClipFile SSH uploads the file over the active VS Code Remote-SSH connection and pastes its path at the prompt. The same shortcut in an editor inserts the path at the cursor.

简体中文

Getting started

  1. Install ClipFile SSH on the local side of desktop VS Code 1.105 or later. To install a downloaded package, run Extensions: Install from VSIX….
  2. Open a folder in a Remote-SSH window. A local workspace folder also works.
  3. Copy files or folders with your desktop file manager, or copy a screenshot to the clipboard. File selections take priority when both formats are present.
  4. Focus an editor or an integrated terminal and press the shortcut. Follow the upload in the status bar. In an editor, each selected item gets its own line. In a terminal, paths share one line, separated by spaces, ready for you to press Enter.

For example, copying Quarterly report.pdf into a workspace at /home/me/project inserts '/home/me/project/.clipfile-ssh/Quarterly report.pdf' with the default settings. Copying a folder inserts one path to the uploaded folder.

ClipFile SSH: Upload and Paste Path also works from the Command Palette. If both an editor and a terminal are open, it asks where to insert the paths.

Local clipboard support

Desktop Clipboard reader
Windows Built-in Windows PowerShell in STA mode reads Explorer file drops and clipboard images.
macOS Built-in JXA and AppKit read Finder file URLs and encode clipboard images as PNG.
Linux / Wayland Install the wl-clipboard package on the client for wl-paste.
Linux / X11 Install xclip on the client.

On Debian or Ubuntu, run sudo apt install wl-clipboard for Wayland or sudo apt install xclip for X11. The extension runs in the local UI extension host. VS Code’s workspace filesystem API handles the remote writes with your existing SSH session and credentials.

Storage and cleanup

Uploads go into .clipfile-ssh/ in the target workspace folder. In a multi-root workspace, the extension uses the editor’s folder or the folder containing the terminal’s reported working directory, falling back to the first workspace folder. In a folderless remote window, a remote editor or workspace file can supply the host for /tmp/clipfile-ssh/. If VS Code cannot identify the host, open a remote file or folder.

Folder uploads include empty directories and skip symbolic links and special files. The entire selection is checked against the size and file-count limits before transfer. Names are made portable, duplicates become foo (1).pdf, and screenshots use screenshot-YYYYMMDD-HHmmss.png.

Reserve the upload directory for clipboard uploads. The extension maintains a .gitignore inside it. After a paste, cleanup removes expired entries, then the oldest excess entries by modification time. A top-level folder counts as one item. The items just pasted remain available even when a single batch exceeds the retention count. To remove the upload history immediately, run ClipFile SSH: Clean Uploaded Files and confirm the displayed directory. Cleanup preserves the ignore file.

Settings

Open Settings and search for @ext:xt2357.clipfile-ssh. The names below use the clipfile-ssh. prefix.

Setting Default Effect
maxTotalSizeMb 50 Combined size per paste in MiB, including screenshots.
maxFilesPerPaste 200 Regular files per paste, including files inside folders.
retentionDays 30 Age limit in days. Set to 0 to turn off automatic cleanup.
maxItems 200 Maximum top-level items kept during automatic cleanup. Set to 0 for unlimited count.
insertTemplate {path} Per-item text using {path}, {relativePath} and {name}.
quoteStyle auto Quote paths with spaces or shell characters. Also accepts none, single and double.
bracketedPaste true Wrap terminal input in bracketed-paste sequences. Disable for prompts that display the sequences literally.
clearClipboardAfterUpload false Clear the local clipboard after the paths have been inserted.
showNotification false Show progress and completion in a notification.

For workspace-relative mentions such as @.clipfile-ssh/diagram.png, use the following settings. Outside a workspace folder, {relativePath} expands to the absolute upload path.

{
  "clipfile-ssh.insertTemplate": "@{relativePath}",
  "clipfile-ssh.quoteStyle": "none"
}

If you customized terminal.integrated.commandsToSkipShell, include clipfile-ssh.pasteTerminal in your list so the terminal shortcut reaches VS Code. VS Code terminal keybindings

Development and releases

Use Node.js 24 with npm.

npm ci
npm run typecheck
npm test
npm run build
npx @vscode/vsce package

The package is written to clipfile-ssh-<version>.vsix. The extension ships as a single JavaScript bundle with zero runtime dependencies.

For a release, set the repository secret VSCE_PAT to a Marketplace token with publish access to xt2357. To publish to Open VSX as well, configure OVSX_PAT for the same namespace. Update the manifest, lockfile and changelog, then push a tag matching the version, such as v0.1.0. The release workflow checks all three operating systems, attaches the VSIX to a GitHub Release, and publishes that asset to the configured registries. Marketplace publishing · Open VSX publishing

MIT license

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