Sublime Forum

Sublime Text 4: How to export settings

#1

I’m moving laptops (a clean setup rather than transferring) and would like to export my ST4 configuration so that I can import it to the new device. Is there an easy way to do this?

I can see forum posts about earlier versions of ST but wasn’t sure if the same advice was relevant.

Thanks!

0 Likes

#2

As a lazy way without explanation, you can run

from pathlib import Path; Path(sublime.packages_path()).parent

in ST console. And copy the directory it shows to the corresponding path on your new machine.

1 Like

#3

Which only works in case the target machine uses same OS and same architecture, in case dependencies are involved. Otherwise it may easily happen a compiled library to not work on the new PC.

0 Likes

#4

Wouldn’t PC takes care of that? Or it only checks whether a dependency’s directory exists?

0 Likes

#5

Thankfully, same OS and architecture, so it appears to have worked.

Thanks for the help!

0 Likes

#6

Various error messages in the code indicate it might have problems doing so. One of them explicitly points to https://packagecontrol.io/docs/syncing.

Ideally it would reinstall incompatible packages or dependencies automatically however.

1 Like