安装扩展 --deploy
在setting.json中进行设置
"deploy": { "targets": [ { "type": "sftp", "name": "My SFTP folder", "description": "A SFTP folder", "dir": "/root/shi-front", "host": "39.66.118.123", "port": 22, "user": "root", "password": "1111111111111", "checkBeforeDeploy": false, } ] }
dir配置的是服务器上项目路径
然后上传文件
标签:插件,deploy,vscode,SFTP,服务器,folder From: https://www.cnblogs.com/haoyinliu/p/17914705.html