##插件安装 按下Ctrl+Shift+P调出命令面板 输入install 调出 Install Package 选项并回车,然后输入ftp,下拉列表中会出现一些相关的插件,选中sftp进行安装就行了,装好后还需配置如下: 选菜单栏中的File->SFTP/FTP->Set up Server,然后出现一个配置窗口如下
输入ftpsync,选择FTPSync插件,点击确定,然后等待下载安装
{
// 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",
"sync_down_on_open": true,
"sync_same_age": true,
"host": "10.0.36.141",
"user": "admin",
"password": "admin@1234",
//"port": "22",
"save_before_upload": true,
"upload_on_save": true,
"remote_path": "/weixin/",
//"file_permissions": "664",
//"dir_permissions": "775",
//"extra_list_connections": 0,
"upload_on_save": true,
"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,
}
{
// 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",
"sync_down_on_open": true,
"sync_same_age": true,
"host": "10.0.36.141",
"user": "admin",
"password": "admin@1234",
//"port": "22",
"save_before_upload": true,
"upload_on_save": true,
"remote_path": "/weixin/",
//"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,
}
怎么生成配置文件
右键.map to
##参考文档: http://my.oschina.net/surjur/blog/392590
https://www.chenyudong.com/archives/sublime-text-install-ftp-plugin.html
https://wp.iirii.com/archives/sublime-text%e5%ae%89%e8%a3%85ftp%e6%8f%92%e4%bb%b6/
https://www.chenyudong.com/archives/sublime-text-graphviz-preview.html
https://wp.iirii.com/archives/%e5%9b%be%e7%89%87%e8%ae%be%e8%ae%a1%e7%9b%b8%e5%85%b3/