1.首先安装vscode插件
2.使用ctrl+shift+p或者view-command palette打开命令面板,输入sftp并按enter键,出现编辑配置文件界面
3.输入对应的主机名,密码,或者密钥文件即可
{
"name": "47.100.101.152",
"host": "47.100.101.152",
"protocol": "sftp",
"port": 22,
"username": "root",
"password": "toor",
"privateKeyPath": "D:/share/linux/centos.myd",
"remotePath": "/root/html",
"uploadOnSave": false
}
4.然后鼠标右键源码,点击upload上传文件,upload folder上传文件夹。
标签:文件,插件,vscode,sftp,源码,上传 From: https://www.cnblogs.com/chacebai/p/17454628.html