Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Do I Sync My Sublime Text 3 Settings Using Dropbox?

I would like to sync Sublime Text 3's Settings across multiple machines using Dropbox.

How should I set this up?

like image 628
Undistraction Avatar asked Aug 12 '13 14:08

Undistraction


People also ask

How do I sync Sublime Text 3?

Can be done with 2 steps using Google Drive: Download Drive for mac/windows (https://www.google.com/drive/download/) sync this folder: C:\Users\{user_name}\AppData\Roaming\Sublime Text 3\Packages\User (right click and sync)


2 Answers

I've been syncing my Sublime settings for a while between multiple locations, all running OS X. I've had some minor problems. Finally, I decided to look into it which led me to what I would consider the authoritative description of how to sync Sublime setting between multiple machines using Dropbox:

Sublime Package Control > Docs > Syncing
https://sublime.wbond.net/docs/syncing

Here is the basic summary:

To properly sync your installed packages across different machines, you actually do not want to sync the whole Packages/ and Installed Packages/ folders. The reason for this is that some packages have different versions for different operating systems. By syncing the actual package contents across operating systems, you will possibly run into broken packages.

The proper solution is to:

  1. Install Package Control on all machines
  2. Then to sync only the Packages/User/ folder.

This folder contains the Package Control.sublime-settings file, which includes a list of all installed packages. If this file is copied to another machine, the next time Sublime Text is started, Package Control will install the correct version of any missing packages.

To sync the folder, you generally move Packages/User/ into your Dropbox and create a symlink to it from Sublime Text 3/Packages/. Detailed instructions for various operating systems are provided via the link above.

like image 76
Tomek Avatar answered Oct 18 '22 15:10

Tomek


IMPORTANT: My answer is not correct. Tomek's answer is better

Before you start, close Sublime Text 3

  1. Create a folder in Dropbox called Sublime Text 3

  2. Move the following two folders to this folder.

    ~/Library/Application\ Support/Sublime\ Text\ 3/Packages  ~/Library/Application\ Support/Sublime\ Text\ 3/Installed\ Packages 
  3. Create symlinks from their original location to their new locations in Dropbox:

    $ ln -s ~/Dropbox/App\ Settings/Sublime\ Text\ 3/Installed Packages ~/Library/Application\ Support/Sublime\ Text\ 3/Installed\ Packages  $ ln -s ~/Dropbox/App\ Settings/Sublime\ Text\ 3/Packages ~/Library/Application\ Support/Sublime\ Text\ 3/Packages 
  4. Open Sublime Text 3

like image 24
Undistraction Avatar answered Oct 18 '22 15:10

Undistraction