从 Sublimtext2迁移到 Sublimtext3

我需要迁移从崇高的文本2到崇高的文本3有所有相同的配置/插件,我已经安装在崇高的文本2。

我安装了升华文本3,但它没有任何的升华文本2包和设置。我真的不知道是否有任何直接的方法来迁移或只是复制一些文件夹。

57923 次浏览

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.

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.

  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.

  6. (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"

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

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.