VSCode配置FTP

首先在VScode中下载安装插件SFTP

image

Windwos下摁Ctrl+Shift+P,输入SFTP: config命令并运行,进入sftp.json配置项如下:

{
    "name": "站点名称",
    "host": "ip地址",
    "port": 22,
    "username": "登录名",
    "password": "登录密码",
    "protocol": "sftp", 
    "agent": null,
    "privateKeyPath": null, 
    "passphrase": null, 
    "passive": false, 
    "interactiveAuth": true,
    "remotePath": "需要打到的远程的文件夹地址",
    "uploadOnSave": true,
    "syncMode": "update",
    "ignore": [
        "**/.vscode/**",
        "**/.git/**",
        "**/.DS_Store"
    ],
    "watcher": {
        "files": "glob",
        "autoUpload": true,
        "autoDelete": true
    }
}

修改为自己机器对应的配置Ctrl+S即可。

posted @ 2019-07-26 14:56  WindSun  阅读(11730)  评论(0编辑  收藏  举报
博客已停更,文章已转移,点击访问