VSCODE Extension
-
Install extension from marketplace SFTP
-
Read doc liximomo/vscode-sftp @ Github
-
Create a folder
mkdir -p SFTP/myworkspace
-
Open
myworkspace
in VScode workspace -
Prompt
ctrl+shift+p
and>SFTP:Config
(you will get a.vscode
folder with thesftp.json
config) -
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.