VSCODE Extension

  1. Install extension from marketplace SFTP

  2. Read doc liximomo/vscode-sftp @ Github

  3. Create a folder mkdir -p SFTP/myworkspace

  4. Open myworkspace in VScode workspace

  5. Prompt ctrl+shift+p and >SFTP:Config (you will get a .vscode folder with the sftp.json config)

  6. Prompt ctrl+shift+p and >SFTP:Download project

Json code snipet for basic configuration

{
    "name": "workspace name",
    "host": "url",
    "protocol": "sftp",
    "port": 22,
    "username": "user",
    "privateKeyPath": "/home/user/.ssh/id_rsa",
    "remotePath": "/remote/path/workspace",
    "uploadOnSave": true
}
Note
Then you can use Visual Studio prompt ctrl+shift+p to use the SFTP extension and sync with remote folder. You might want to start by downloading

Creation, edition, deletion

If "uploadOnSave": true then everytime you hit ctrl+s you will upload to server.

When you want to delete a file/folder you need to do it locally and remotely.