🥲Sync sublime text packages & user settings across devices

https://utkarsh9891.github.io/PackageSync/

Cai dat 2 plugin nay nho cai dat dang bo den thu muc nay

C:\Users\Administrator\AppData\Roaming\Sublime Text\Packages

Make sure to copy your personal access token now as you will not be able to see this again.

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

Hoặc đồng bộ theo list C:\Users\Administrator\SublimePackagesList.txt

{
    "installed_packages": [
        "A File Icon", 
        "Emmet", 
        "MySQL Snippets", 
        "Package Control", 
        "PackageSync", 
        "SideBarEnhancements", 
        "SidebarHoverToggle", 
        "SQL (simple-db-migrate)", 
        "sql-formatter", 
        "SQLExec", 
        "SQLPlus", 
        "SQLTools", 
        "SublimePackageSync", 
        "Sync Settings", 
        "Transparency"
    ]
}

Cai dat dong bo moi nhat 4/11/2024

https://gist.github.com/phamngoctuong/5ea77c0ee15712ce7c7647028b00b2e0

{
    // Brings write permission to Sync Settings over your gists (edit, delete and create).
    // This option is not required, if you only want to download your backups
    "access_token": "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",

    // Identifier of your backup on gist.github.com.
    "gist_id": "5ea77c0ee15712ce7c7647028b00b2e0",

    // In simple words, this option is a black list. Which means, every file
    // that match with the defined pattern, will be ignored on sync.
    "excluded_files": [
        "*.dmg",
        "*.DS_Store*",
        "*.exe",
        "*.Spotlight-V100",
        "*.Trashes",
        "*ehthumbs.db",
        "*oscrypto-ca-bundle.crt",
        "*Package Control.cache/*",
        "*Package Control.last-run",
        "*Package Control.merged-ca-bundle",
        "*Package Control.system-ca-bundle",
        "*Package Control.user-ca-bundle",
        "*Thumbs.db"
    ],

    // An HTTP proxy server to use for requests.
    "http_proxy": "",

    // An HTTPS proxy server to use for requests.
    "https_proxy": "",

    // In simple words, this option is a white list. Which means, every file that
    // match with the defined pattern, will be included on sync, even if it was
    // included on `excluded_files` option.
    "included_files": [],

    // If is `true`, your settings will be synced with the latest settings on
    // gist.github.com when Sublime Text startup
    "auto_upgrade": false,
}
{
	"gist_id": "71b37546d15b84d52e374ec35c672951",
	"access_token": "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"
}

Despite DropBox, you can simply use Git to sync Sublime Text settings and Package Control Packages:

  1. Create a repository (e.g. on GitHub)

  2. Create a gitignore file with the following content:

    # Ignore everything...
    *
    # ... except preferences and package list
    !.gitignore
    !Preferences.sublime-settings
    !Package Control.sublime-settings
  3. Set up the created repository in the user directory (Windows 10: ~/AppData/Roaming/Sublime\ Text\ 3/Packages/User, Ubuntu: ~/.config/sublime-text-3/Packages/User) of the first computer with the following Git commands:

    $ git init
    $ git remote add origin <repository url>
    $ git fetch
    $ git commit -am "added: settings and packages"
    $ git push
  4. Set up the repository on all other computers (the last line overwrites the current settings with those from the repository):

    $ git init
    $ git remote add origin <repository url>
    $ git fetch
    $ git reset --hard origin/master

Now you just have to pull/push changes from the repository to have your settings and packages synchronized. In addition you can sync the settings with the Git Package for Sublime Text. Here you don’t have to switch to a Git Shell to pull or push the changes but you can do it right in Sublime Text.

See this article on Medium for further information.

Last updated

Was this helpful?