Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does sublime store themes?

I've installed itg.flat for sublime via the package manager. I'm wanting to make a few edits to theme but I can't find where package manager has installed the theme files. I'm using ST3 on OS X Mavericks

I've had a look around the net but haven't found anything relating specifically to what I'm after so a SO thread is a last resort.

like image 737
leaksterrr Avatar asked Jun 20 '14 14:06

leaksterrr


People also ask

Where are sublime color schemes stored?

Color schemes are XML formatted files located at the Packages folder with color schemes. They are an awesome way for the customization of Sublime text colors, unlike themes which are specific to UI elements. You can choose color schemes using option Preferences → Color Scheme.

How do I change the theme in Sublime Text?

Sublime Text 3 has a number of pre-installed themes that can be enabled by clicking on “Preferences” in the top bar, then clicking “Color Scheme”. Click on “Preferences” in the top bar, then click “Color Scheme”. Next, a box will appear at the top of the window, with a few options.

What is the theme of On the Sublime?

Written as an epistolary piece to “dear Terentianus,” “On the Sublime” examines the work of more than 50 ancient writers under the lens of the sublime, which Longinus defines as man's ability, through feeling and words, to reach beyond the realm of the human condition into greater mystery.


1 Answers

Sublime Text 3 packages installed via Package Control are by default stored as .sublime-package zip files in your Packages directory, whose location depends on your operating system:

  • Linux: ~/.config/sublime-text-3/Packages
  • OS X: ~/Library/Application Support/Sublime Text 3/Packages
  • Windows Regular Install: C:\Users\YourUserName\AppData\Roaming\Sublime Text 3\Packages
  • Windows Portable Install: InstallationFolder\Sublime Text 3\Data\Packages

The easiest way to edit them is to install PackageResourceViewer from Package Control. Once installed, open the Command Palette with ShiftP (OS X) or CtrlShiftP (Windows/Linux) and type in prv to access the PackageResourceViewer options.

Select Extract Package, then scroll down to Theme - itg.flat and hit Enter. This will extract the package into your Packages folder, which can be easily accessed via your operating system's file manager (Finder, Windows Explorer, Nautilus, etc.) by selecting Sublime Text → Preferences → Browse Packages… (this is for OS X, Windows and Linux have a separate Preferences menu). Any edits to the files in this directory will override the files contained in the Installed Packages/Theme - itg.flat.sublime-package file.

If you only wish to edit a single file, after typing prv into the Command Palette, chose PackageResourceViewer: Open Resource instead. You can then navigate through your packages and choose the file(s) you wish to edit - Theme - itg.flat/itg.flat.dark.sublime-theme, for example. Once you edit the file(s) you have chosen, they will be saved in the Packages directory,

However, please keep in mind that if the package is updated in the future, the changes will not apply because you've overridden them by extracting the files into Packages. This is not quite the case if you choose Open Resource - only the files you chose to edit and save will be stored in Packages, and they will override the identically-named file in the .sublime-package archive. If the package is updated in the future, the file(s) containing your edits will still override the same file(s) in the archive, but the rest of the files will be updated. For example, if you edit itg.flat.dark.sublime-theme via Open Resource, when the entire Theme - itg.flat is updated, your customized file will override the file of the same name in the package archive, but all other files will have the changes from the update applied.

like image 92
MattDMo Avatar answered Sep 18 '22 14:09

MattDMo