sublime sftp

时间:2014-04-30 20:49:48   收藏:0   阅读:657

2014-04-29 13:19:09

先贴出打开远程(Linux)目录所需的配置文件

mamicode.com,码迷
{
    // 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",

    "save_before_upload": true,
    "upload_on_save": true,
    "sync_down_on_open": true,
    "sync_skip_deletes": false,
    "sync_same_age": true,
    "confirm_downloads": false,
    "confirm_sync": false,
    "confirm_overwrite_newer": false,
    
    "host": "0.0.0.0",
    "user": "username",
    "password": "123456",
    "port": "22",
    
    "remote_path": "/usr/local/mydir",
    "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",
        "\\.png", "\\.jpg"
    ],
    //"file_permissions": "664",
    //"dir_permissions": "775",
    
    "extra_list_connections": 4,

    "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": true,
    //"remote_time_offset_in_hours": 0,
    //"remote_encoding": "utf-8",
    //"remote_locale": "C",
    //"allow_config_upload": false,
}
mamicode.com,码迷

第一步:现在本地创建一个文件夹,用sublime打开

第二步:右键sidbar中这个文件图标,选择SFTP/FTP: SFTP > Map to Remote…

第三步:在弹出的配置文件(如上)中修改相应的配置,ssh的ip,用户名,密码,想要打开的目录等等

第三步:右键文件图标,SFTP > Download Folder,然后等待同步完成(如果出错,可能是编码的问题,忽略掉编码不正确的文件,或者修改编码,然后再SFTP > sync remote->local)

原文:http://wbond.net/sublime_packages/sftp/sidebar

sublime sftp,码迷,mamicode.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!