使用CTRL+SHIFT+P,输入sftp后安装插件 sftp.config
{
"name": "My Server",
"host": " *.*.*.*.* ",//服务器的ip
"protocol": "sftp", //ftp 或者sftp
"port": 22, //端口号
"username": "账号",
"password":"你的密码",
"remotePath": "/www/wwwroot/cs.ttpingtai.com/public/mobile",//服务器目录
"uploadOnSave": true,
"context": "dist/build/h5", //需要上传的路径
"watcher": {
"files": "**/*",
"autoUpload": true, //是否自动上传
"autoDelete": false //是否自动删除
}
}