Migrate from Sublime text 2 to Sublime text3

Sublimetext2Sublimetext3Sublimetext

Sublimetext2 Problem Overview


I need to migrate from sublime text 2 to sublime text 3 to have all the same configuration/plugins I have installed on the sublime text2.

I installed sublime text 3, but it does not have any of the sublime text 2 packages and settings. I really dont know if there are any straight forward methods to migrate or just copy of some folders.

Sublimetext2 Solutions


Solution 1 - Sublimetext2

I wrote a blog post detailing how to migrate over from Sublime Text 2 over to ST3.

Read: "Can I use ST3 yet? Migrating to Sublime Text 3"

TLDR:

  1. Use git to install the python3 branch of Package Control. Step by step instructions available here;

  2. Move over all your folders in Sublime Text 2/Packages/ to Sublime Text 3/Packages/ except two: Default and Package Control.

Solution 2 - Sublimetext2

Your preferences/configuration from ST2 is in Packages/User (find it with Preferences -> Browse Packages). You can just copy that folder to to Packages folder in ST3.

About plugins it is best to check the already mentioned link: https://github.com/wbond/sublime_package_control/wiki/Sublime-Text-3-Compatible-Packages This wiki page explains which plugins can be installed via Package Control and which ones require manual installation.

Solution 3 - Sublimetext2

Aditional info for windows users, to make ST3 as the default editor after migration.

If you keep both versions or if you uninstall ST2... probably you will notice that you can't open files or associate open with by default with ST3.

> I think I can help you get Open With/default editor working.
The problem is that the Sublime Text uninstaller doesn't remove a particular registry entry referring to Sublime Text 2's sublime_text.exe, which prevents Windows from adding an entry for Sublime Text 3's sublime_text.exe. > > To correct it manually, open regedit and navigate to:

Computer\HKEY_CLASSES_ROOT\Applications\

>find the sublime_text.exe entry, and delete it. You should now be able to set Sublime Text 3 as the default editor for anything you want.

Source: Re: Can't make default editor in windows by @kane_t

Solution 4 - Sublimetext2

  1. Install the Python3 version of Package Control. Copy the Sublime Text 3 code for Package Control, open Sublime's Console (Ctrl `), and paste the code into the console.

  2. Open your user's Packages directory for both Sublime Text versions from the menus using Preferences > Browser Packages... in Sublime Text. (Sublime Text > Preferences > Browser Packages... on OSX.)

  3. In the ST2 Packages directory, copy all directories except these two: Default and Package Control. Paste all those directories into the ST3 Packages directory.

  4. Restart Sublime Text 3.

  5. (Optional.) Move your terminal / command prompt aliases to ST3.

  • Windows: Edit autoexec.bat in your user directory. Change doskey subl="C:\Program Files\Sublime Text 2\sublime_text.exe" $* to doskey subl="C:\Program Files\Sublime Text 3\sublime_text.exe" $*. Save autoexec.bat and restart your command line interface.

  • OSX: Remove the old alias by executing sudo rm /bin/subl in the terminal. Add a new alias with sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /bin/subl.

  1. (Optional) Enter your license key into ST3. From the menus, choose Help > Enter License and paste in your license key.

See Wes' blog post on how to migrate over from Sublime Text 2 over to ST3 for more details: "Can I use ST3 yet? Migrating to Sublime Text 3"

Solution 5 - Sublimetext2

See if you plugins have been converted: www.caniswitchtosublimetext3.com is no longer available

ST3 and ST2 are in separate folders, so you can go ahead and install it and add your plugins/prefs as you work.

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
QuestionFizer KhanView Question on Stackoverflow
Solution 1 - Sublimetext2wesbosView Answer on Stackoverflow
Solution 2 - Sublimetext2schlamarView Answer on Stackoverflow
Solution 3 - Sublimetext2gmoView Answer on Stackoverflow
Solution 4 - Sublimetext2KatieKView Answer on Stackoverflow
Solution 5 - Sublimetext2MikeHallView Answer on Stackoverflow