1.vscode search sftp, install
2.mac shift+command+p
/ win to shift+ctrl+p
bring up the drop-down list of shortcut settings, enter sftp search, click on the result SFTP:CONFIG
3. Paste the content below
{
"host": "192.168.129.21",
"port": 22,
"username": "root",
"password": "polylinknodebuild",
"protocol": "sftp",
"agent": null,
"privateKeyPath": null,
"passphrase": null,
"passive": false,
"interactiveAuth": false,
"remotePath": "/ssd/jianye/cdr/ix-server",
"uploadOnSave": true,
"syncMode": "update",
"watcher": {
"autoUpload": true,
"autoDelete": true
},
"ignore": [
"**/node_modules/**",
"node_modules",
"**/.vscode/**",
"**/.git/**",
"**/.svn/**",
"**/.idea/**",
"**/.DS_Store"
]
}
Parameters
Note: Yellow must be modified
- host Host address that needs to be uploaded
- port Host port
- username ssh login name
- password ssh password
- protocol protocol.
请设置成sftp,选ftp将无法用ssl账户密码
- remotePath Directory uploaded to the server
- uploadOnSave save automatic upload
- autoUpload automatically upload
uploadOnSave 和 autoUpload
all settings will be saved automatically uploaded - autoDelete automatically delete
- ignore After configuring regular, it will not be uploaded