sublime text3 Sync_Setting
sublime text 3 Sync_Setting
official web:https://packagecontrol.io/packages/Sync%20Settings
Getting Started
- Run
Package Control: Install Package
command, and looks for Sync Settings - Run
Sync Settings: Edit User Settings
- if Do you already have a gist?
- Copy
gist id
and put it in config file (https://gist.github.com/<username>/<gist id>
) (gist_id
property) - Run
Sync Settings: Download
command to retrieve your backup.
- Copy
- else
- Create an access token here with
gist
scope checked. - Put the token in the config file (
access_token
property) - Run
Sync Settings: Create and Upload
command
- Create an access token here with
File Format
Please note - the config file uses the JSON format. A simplified example may look like the following.
{ "access_token": "xxxxxxxxxxxxxxxxxxxxxxxxx", "gist_id": "xxxxxxxxxxxxxxxxxxxxxxxxx" }
注意:
gist_id是自动生成的,指向所备份的文件,在同步时输入gist_id即可找到文件
使用:
Commands
command | description |
---|---|
Sync Settings: Create and Upload | Creates a new backup on gist.github.com from your local files |
Sync Settings: Delete and Create | Deletes the remote reference of your gist and then, creates a new backup from your local files to gist.github.com |
Sync Settings: Upload | Upload a backup from your local files to gist.github.com |
Sync Settings: Download | Retrieves the latest version of your backup, using as reference the gist_id property defined in your settings file. |
Sync Settings: Delete | Deletes the remote version of your gist, using as reference the gist_id property defined in your settings file. (This action is irreversible) |
Sync Settings: Show Logs | Open a new view, with Sync Settings log file |
Sync Settings: Edit User Settings | Open a new view, with Sync Settings user settings. |
在另一台安装了sublime text的机器上,按照类似的步骤操作,选择Download即可同步设置和插件。
以上过程可能要求网络