humy2833 / FTP-Simple

visual studio code extension
103 stars 38 forks source link

Functions

Available commands

Caution

Be sure to check the console(Ctrl + Shift + U)("OUTPUT -> ftp-simple") for a response to the all action.

Startup Settings

  1. Press 'F1'
  2. Enter 'ftp-simple'
  3. Pick 'CONFIG'
  4. Enter ftp connection information and save

Config setting example

See the easy-ftp details.

Example

[
    {
        "name": "my server1",
        "host": "127.0.0.1",
        "port": 21,
        "type": "ftp",
        "username": "id",
        "password": "pw",
        "path" : "/"
    },
    {
        "name": "my server1 with tls",
        "host": "127.0.0.1",
        "port": 21,
        "type": "ftp",
        "username": "id",
        "password": "pw",
        "secure" : true,
        //"secureOptions" : {"rejectUnauthorized": false, "secureProtocol" :"TLSv1_2_method"},
        "path" : "/"
    },
    {
        "name": "my server2",
        "host": "127.0.0.1",
        "port": 22,
        "type": "sftp",
        "username": "id",
        "password": "pw",
        "path" : "/",
        "autosave" : false
    },
    {
        "name": "my server3",
        "host": "127.0.0.1",
        "port": 21,
        "type": "sftp",
        "username": "id",
        "password": "pw",
        "path" : "/home",
        "confirm" : false,
        "backup" : "C:/backup",
        "project" :  {
            "c:/projects/project1" : "/home/user/project",
            "c:/projects/project2" : {"path":"/home/user/project2", "save":true}  //When the "save" value is "true", save immediately without confirm
        },
        "ignore" : ["/**/node_modules", "/**/*.class"]
    },
    {
        "name": "my server4",
        "host": "127.0.0.1",
        "port": 22,
        "type": "sftp",
        "username": "id",
        "password": "x",
        "agent": "/run/user/1111/keyring/ssh",
        "path": "/",
        "autosave": true,
        "confirm": false
    },
    ....
]

Remote Config(option)

"File - Preferences - Settings" and type in the format shown below.

Example

"ftp-simple.remote-workspace" : "c:/remote-workspace",
"ftp-simple.remote-workspace-load-all" : true