Category Archives: sublime text3 trick

sublime text3 sftp config file path

今天配置sublime text3 sftp的时候发现配置server文件需要保存,但随便找个地址保存后。再次打开browser server选项依然没有。所以查找了相关资料,mac的默认路径(sftp server default configuration file path):

 mac:~/Library/Application Support/Sublime Text 3/Packages/User/sftp_servers

在该目录下直接touch配置文件即可,可以不用后缀扩展名.


{
    // 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": "xx.xx.xx.xx",
    "user": "admin",
    "password": "xxx",
    "port": "xxx",
    "remote_path": "/upload/",

    //"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,
}

参考:https://wbond.net/sublime_packages/sftp/settings