远程同步太多了,例如下面:
下面使用sftp
使用
- file -> SFTP/FTP -> Edit map...,或者right click on the project and selected
Edit Map...
(具体选项不太清楚,还是不要花时间记住这个吊用的单词,有个模糊概念就行了)。但我的操作
ctrl + shitp + p
搜索并执行SFTP Map to Remote
; 会生成sftp-confing.json。你手动创建也行。
参数不我不做说明,我也没看我他官网说名,如果你用atom的remote-ftp,那么这个就简单了。
{
// The tab key will cycle through the settings when first created
// Visit http://wbond.net/sublime_packages/sftp/settings for help
// sftp, ftp or ftps
"type": "ftp",
"save_before_upload": true,
"upload_on_save": false,
"sync_down_on_open": false,
"sync_skip_deletes": false,
"sync_same_age": true,
"confirm_downloads": false,
"confirm_sync": true,
"confirm_overwrite_newer": false,
"host": "ip hor domainName",
"user": "your username",
"password": "password",
"port": "21",
"remote_path": "/upload/to/target/path",
"ignore_regexes": [
"\\.sublime-(project|workspace)", "sftp-config(-alt\\d?)?\\.json",
"sftp-settings\\.json", "/venv/", "\\.svn/", "\\.hg/", "\\.git/",
"\\.bzr", "_darcs", "CVS", "\\.DS_Store", "Thumbs\\.db", "desktop\\.ini"
],
//"file_permissions": "664",
//"dir_permissions": "775",
//"extra_list_connections": 0,
"connect_timeout": 30,
//"keepalive": 120,
//"ftp_passive_mode": true,
//"ftp_obey_passive_host": false,
//"ssh_key_file": "~/.ssh/id_rsa",
//"sftp_flags": ["-F", "/path/to/ssh_config"],
//"preserve_modification_times": false,
//"remote_time_offset_in_hours": 0,
//"remote_encoding": "utf-8",
//"remote_locale": "C",
"allow_config_upload": true,
}
- right click to select
upload
, orctrl + shift + p
search and executeupload
。
ps: 有点遗憾就是ftp上没有目录,而不能自动创建,需要手工创建, 而atom的remote-ftp则不一样。
其他操作参考 atom的操作,这里不在说明了。
网友评论