Migrate from Sublime text 2 to Sublime text3
Sublimetext2Sublimetext3SublimetextSublimetext2 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:
-
Use git to install the python3 branch of Package Control. Step by step instructions available here;
-
Move over all your folders in
Sublime Text 2/Packages/
toSublime Text 3/Packages/
except two:Default
andPackage 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
-
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. -
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.) -
In the ST2 Packages directory, copy all directories except these two:
Default
andPackage Control
. Paste all those directories into the ST3 Packages directory. -
Restart Sublime Text 3.
-
(Optional.) Move your terminal / command prompt aliases to ST3.
-
Windows: Edit
autoexec.bat
in your user directory. Changedoskey subl="C:\Program Files\Sublime Text 2\sublime_text.exe" $*
todoskey subl="C:\Program Files\Sublime Text 3\sublime_text.exe" $*
. Saveautoexec.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 withsudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /bin/subl
.
- (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.