使用ftp-sync插件


安装插件

  1. ftp-sync

插件初始化

  1. ctrl+shift+p
  2. fsync: init

生成:当前代码所在目录/.vscode/ftp-sync.json

添加配置

修改ftp-sync.json

  1. {
  2. "remotePath": "./Programming/tall-raspi",
  3. "host": "192.168.43.67",
  4. "username": "pi",
  5. "password": "",
  6. "port": 22,
  7. "secure": false,
  8. "protocol": "sftp",
  9. "uploadOnSave": true,
  10. "passive": false,
  11. "debug": true,
  12. "privateKeyPath": "C:\\Users\\__zHangSan\\.ssh\\id_rsa",
  13. "passphrase": null,
  14. "agent": null,
  15. "allow": [],
  16. "ignore": [
  17. "\\.vscode",
  18. "\\.git",
  19. "\\.DS_Store",
  20. "\\*.o"
  21. ],
  22. "generatedFiles": {
  23. "extensionsToInclude": [
  24. ""
  25. ],
  26. "path": ""
  27. }
  28. }

使用sftp插件


安装插件

image.png

插件初始化

  1. SFTP: config

修改配置

image.png