vscode
vscode 資源
SFTP 套件
設定檔案
.vscode/sftp.json
{
"name": "My Server",
"host": "kjhost",
"protocol": "sftp",
"port": 22,
"username": "kj",
"remotePath": "/home/kj/",
"privateKeyPath": "/Users/kejyun/.ssh/id_rsa",
"watcher": {
"files": "**/*{bundle.css,bundle.css.map,bundle.js,bundle.js.map}",
"autoUpload": true,
"uploadOnSave": true,
"autoDelete": false
},
"uploadOnSave": true
}
參考資料
- SFTP - Visual Studio Marketplace
- GitHub - liximomo/vscode-sftp: Super fast sftp/ftp extension for VS Code
- 透過 VSCode SFTP/SSH 自動同步 Server 程式碼 - Soul & Shell Blog
- How does watcher works? · Issue #78 · liximomo/vscode-sftp · GitHub
最後修改 April 18, 2021