最近使用到了sublime text的神奇的插件SFTP,试用一番,果真神奇,再也不用老是奔波于服务器与本地之间的上传、下载的同步中了,还是很方便的
使用方法:
点击file------->SFTP------->setup sever,会出现下面的界面:
{
// 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": "sftp",
"sync_down_on_open": true,
"sync_same_age": true,
"host": "example.com",
"user": "username",
//"password": "password",
//"port": "22",
"remote_path": "/example/path/",
//"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": false,
}
格式很明确也很简单,只需要对应修改字段的值然后保存直接就会连接虚拟机了,我修改的有host、user、password、host这几个字段然后很快就可以连接了
使用过程中会遇到一个问题就是,在使用了几次之后会一直弹出来一个框,提醒你这不是免费服务需要你购买,当然就连sublime本身都是需要收费的,当然不会有人真的花钱去买,因为网上的破解码注册码什么的有很多,拿来粘贴之后就可以解决未注册的问题了,我之前的博客中有一篇就是专门的sublime注册码大全,如果需要可以拿去使用,这里我的解决方法是在网上找到了SFTP插件的注册码,博文最后会给出参考的链接,注册方法是:
点击Perference---->Package Settings------->SFTP------->setting user
我的进去之后是空白,什么东西都没有,这时候可以粘贴下面两个我试验过后好使的注册码:
{
"email": "xiaosong@xiaosong.me",
"product_key": "d419f6-de89e9-0aae59-2acea1-07f92a"
}
-----------------------------------------------------------------------------------
// {
// "email":"Rimke@163.com",
// "product_key":"e83eda-38644b-43c828-e3669b-cd8a85",
// }
粘贴之后,保存退出即可
参考链接:
Sublime Text SFTP 注册码,亲测有效,SVN注册码
http://www.youranshare.com/push/topics/softuse/370.htmlhttp://blog.csdn.net/rimke/article/details/38975309