sublime text 3 Sync_Setting
official web:https://packagecontrol.io/packages/Sync%20Settings
Getting Started
- Run
Package Control: Install Packagecommand, and looks for Sync Settings - Run
Sync Settings: Edit User Settings - if Do you already have a gist?
- Copy
gist idand put it in config file (https://gist.github.com/<username>/<gist id>) (gist_idproperty) - Run
Sync Settings: Downloadcommand to retrieve your backup.
- Copy
- else
- Create an access token here with
gistscope checked. - Put the token in the config file (
access_tokenproperty) - Run
Sync Settings: Create and Uploadcommand
- 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即可同步设置和插件。
以上过程可能要求网络
本文指导如何使用Sync Settings插件,通过GitHub Gist自动备份并同步Sublime Text 3的用户配置,包括设置创建、更新、下载和删除操作,以及所需文件格式和命令用法。
8046

被折叠的 条评论
为什么被折叠?



