# vscode-sftp自动化上传 **Repository Path**: uxzhen/vscode-sftp-automatic-upload ## Basic Information - **Project Name**: vscode-sftp自动化上传 - **Description**: 官方wiki:https://github.com/liximomo/vscode-sftp/wiki/config#watcherautoupload - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-21 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SFTP配置 **shift + ctrl + p 打开输入sftp,打开config自动创建;** [官方wiki地址](https://github.com/liximomo/vscode-sftp/wiki/config#watcherautoupload) ``` { "name": "My Server", "host": "8.8.8.8",//服务器地址 "protocol": "sftp",//sftp or ftp "port": 21,// 21 or 22 "username": "root", "password":"123456", "remotePath": "/www/wwwroot/a2dc.cn/", "uploadOnSave": true, "context": "dist/",//本地映射目录,不设置的话会把整个目录上传上去,并且关系到下边文件更新自动上传目录 "watcher": { "files": "**/*", "autoUpload": true, "autoDelete": false } } ```