suntobright / vscode-sftp

Edit remote Linux files directly in VS Code.
MIT License
14 stars 6 forks source link

vscode-sftp

Edit remote Linux files in VS Code directly.

Note

Only support remote Linux machine. Some functionality (like file watching) may not work well on other operating system (like FreeBSD).

Features

Commands

All commands are grouped in SFTP category.

SSH credential configuration

SSH credential configuration could be required during processing, with the following json format:

{
    "host": "Host Name / IP Address",
    "port": 22,
    "username": "User Name",
    "password": "Password",
    "passphrase": "Passphrase",
    "privateKeyFile": "/path/to/privateKeyFile"
}

Note

The credential configurations are stored without encryption in VS Code, including "host", "port", "username", "password", "passphrase" and privateKey from "privateKeyFile". You can use SFTP: Remove Configuration to remove configurations.

Quick Start

1. Trigger command

Trigger related command by Command Palette, Explore Context Menu or Editor Context Menu.

2. Input SSH Credential

After choosing the Add New SFTP Configuration option, the credential information is required by asking user to edit a temporary json file.

3. Select Remote File/Folder

Remote resource is selected by showing user a popup quick-pick widget. Only file, folder and symbolic link to a file/folder are showed in the widget.

4. Open Folder Example

Open Folder

Known Issues

1. Failed to create symbolic link on Windows

Symbolic links are ignored on Windows when in a downloading folder, since Windows need Admin permisstion to create them.

See https://github.com/nodejs/node-v0.x-archive/issues/2274.

2. Failed to handle remote files when file name contains \

Linux file name could contain \, but it would be treated as path seperator in VS Code.

Thanks

Sincerenly thanks to these people who have contributed to this extension.

Enjoy!