0%

VS Code SFTP

VS Code SFTP

Config

1
2
3
4
5
6
7
8
9
10
{
"protocol": "sftp",
"host": "0.0.0.0",
"port": 22,
"username": "YOUR_USER_NAME",
"remotePath": "REMOTE_ABSOLUTE_PATH",
"ignore": [".vscode", ".git", ".DS_Store"],
"privateKeyPath": "~/.ssh/id_rsa",
"uploadOnSave": true
}

Commands

  • Ctrl+Shift+P on Windows/Linux or Cmd+Shift+P on Mac open command palette
1
2
3
4
5
6
7
8
SFTP: Config
Create a new config file for a project.
SFTP: Upload Active File
Upload the current file.
SFTP: Upload Active Folder
Upload the entire folder the current file is located in.