I'm migrating from Sublime Text 2 to 3. In Sublime Text 2, I changed a lot of the default settings of the editor -- such as the tab bar height, sidebar color, etc. -- by modifying the Default.sublime-theme
file in sublime-text-2/Packages/Theme - Default
. I was also able to modify the colors of the default color schemes in a similar fashion. I've been trying to figure out how to do this for Sublime Text 3, but can't seem to find these files. ~/.config/sublime-text-3
only seems to contain overrides for user settings, not the default settings.
This link on the Sublime Text forums seems to give the location for Windows and Mac, but not for Ubuntu. I've searched a bit to no avail. Does anyone have suggestions?
Thank you!
Most of the packages you will install will be placed in ~/. config/sublime- text-3/Packages/User , where Sublime Text can detect them. You can also get to this folder by selecting Preferences > Browse Packages... (or Sublime Text > Preferences > Browse Packages... on Mac).
In general, <executable_path>/Packages/ is for packages that ship with Sublime Text, and <data_path>/Installed Packages/ is for packages installed by the user.
To use subl, the Sublime Text bin folder needs to be added to the path. For a typical installation of Sublime Text, this will be located at /Applications/Sublime Text. app/Contents/SharedSupport/bin.
A sublime-package file is just zip file with the extension changed; i.e. if you have a tool that can open a zip file, you can open the package and review the contents using it. This may or may not require you to temporarily rename the file to have zip extension, depending on the tool.
To amplify on @skuroda's answer - ST3 contains all of its data that, in ST2, was stored in Packages/PackageName
, in PackageName.sublime-package
files that are basically just zip files, or "Resources" as they're now known. Using PackageResourceViewer
, you can easily edit the individual files contained within the resource, then save it back again. When saved, the proper directory structure under Packages/PackageName
will be created, allowing you to edit the file directly next time. The way file precedence works in Sublime, any file that exists in ~/.config/sublime-text-3/Packages/PackageName/
will override any file of the same name stored in PackageName.sublime-package
.
However, since you don't want these files to be accidentally overwritten, I would suggest creating ~/config/sublime-text-3/Packages/User/Themes/
and User/Color Schemes
directories and storing your customized files there instead. The User/
directory is protected from overwrites during upgrades, etc., and unless you're planning on creating a customized theme or color scheme for redistribution through Package Control, it's best practice to keep your files in there.
I just realized you hadn't gotten an answer to your original question - where are the files stored? If you installed the .deb
file from sublimetext.com, all the .sublime-package
files are in /opt/sublime_text/Packages
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With