扩展通过当前 Remote - SSH 会话将选中的文件下载到本机缓存,再写入 Windows 文件剪贴板。一次新复制成功后,扩展会清理超过七天的旧批次。
English
Copy remote files from the Remote - SSH Explorer in VS Code and paste them directly into a Windows folder. Use Ctrl+C and Ctrl+V for one file or a batch, without opening a Save dialog.
Install and use
Install Remote SSH File Clipboard from the Extensions view in VS Code on Windows.
Connect with Remote - SSH, select one or more files in the Explorer sidebar, and press Ctrl+C.
When the status bar says the files are ready to paste, press Ctrl+V in the destination folder in Windows File Explorer.
Requirements and behavior
Requires VS Code desktop 1.127.0 or later on Windows and an active Remote - SSH session.
Supports multiple files, binary files, and Chinese filenames. It copies the saved version of each remote file.
The shortcut applies when a file has focus in the Remote - SSH Explorer. Text in the editor and folders use VS Code's regular copy behavior.
If you assigned Ctrl+C to explorer.download, remove that custom binding so the extension's shortcut can take effect.
How files are transferred
The extension uses the active Remote - SSH session to download the selected files to a local cache, then places them on the Windows file clipboard. After a new copy succeeds, the extension removes older batches that have been cached for more than seven days.