在本地开发服务器上的工程的方法
Vscode中安装SFTP插件
然后打开一个工程、按F1找到SFTP的配置文件
第三个选项可以手动同步代码、配置文件如下图所示
{
"name": "xxxxx服务名字",
"host": "192.168.xx.xx",
"protocol": "sftp",
"port": xxxxx,
"username": "用户名",
"remotePath": "/home/name/要上传到远端的路径",
"uploadOnSave": true,
"connectTimeout": 100000000,
"privateKeyPath": "C:\\Users\\Administrator\\.ssh\\xxxx密钥文件",
"ignore": [
"\\.vscode"
]
}