Exporting Sublime Text configuration and installed packages

Sublimetext2Sublimetext

Sublimetext2 Problem Overview


I have spent considerable time to tune up Sublime Text 2 configs. Now I would want to share my configurations (one file) and installed packages list with my friend. What would be the best way to do this? Manually pick related folders in Packages and zip them or something else? Preferably I'd like to create an automated script which could be copy-pasted to my friend and others.

My friend is using Linux. I am using OSX, which may cause some extra problems.

Sublimetext2 Solutions


Solution 1 - Sublimetext2

If you are using Package Control, send your friend Package Control.sublime-settings. In fact, the easiest way to transfer settings between machines is to move the User package between machines. This, in combination with package control, makes setting up on a new machine relatively quick and painless. The only issues your friend might have is mismatched key binding or other system specific settings. These files have the notation some_name (platform).extension. Other than that, I wouldn't forsee any issues (unless you are using OS X specific plugins).

Solution 2 - Sublimetext2

Package control has a good doc talking about how to sync Sublime settings and install packages: https://packagecontrol.io/docs/syncing

Solution 3 - Sublimetext2

Using Windows

Open a new Command Prompt and type the following at the command line:

cd "C:\Users\<name>\AppData\Roaming\Sublime Text 3\Installed Packages" dir

Then copy and paste to an editor (e.g. Sublime Text) and filter out the relevant parts. Not great but working.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMikko OhtamaaView Question on Stackoverflow
Solution 1 - Sublimetext2skurodaView Answer on Stackoverflow
Solution 2 - Sublimetext2weiView Answer on Stackoverflow
Solution 3 - Sublimetext2GregorView Answer on Stackoverflow