Sublime Forum

Settings Confusion

#1

I was changing my font size today, and looking at the Preferences.sublime-settings file there’s the following text:

	// Note that the font_face and font_size are overridden in the platform
	// specific settings file, for example, "Preferences (Linux).sublime-settings".
	// Because of this, setting them here will have no effect: you must set them
	// in your User File Preferences.
	"font_face": "",
	"font_size": 10,
	// The font size set when using "Reset Size"
	"default_font_size": 10,

But I have no such Preferences (MacOS).sublime-settings (or maybe it would be called OSX?)

I even deleted my ~/Library/Application Support/Sublime Text directory and restarted Sublime Text so that it’d get created and there’s almost no files?

 tim@starglider  ~/Library/Application Support/Sublime Text  du -h
  0B    ./Installed Packages
 56K    ./Local
  0B    ./Packages/User
  0B    ./Packages
  0B    ./Lib/python38
  0B    ./Lib/python33
  0B    ./Lib
  0B    ./Log

Sublime Text is working fine and when I set "font_size": 14, in my Preferences.sublime-settings it woroks as expected.

But I’m trying to understand, is that reference to Platform Specific settings out of date? Is something wrong with my Sublime Text install on my Mac?

MacOS Sequoia 15.7.1
Sublime Text 4200

PS: Even looking in here I don’t see any such file: /Applications/Sublime Text.app/Contents/MacOS/Packages

0 Likes

#2

Sublime Text ships a general Packages/Default/Preferences.sublime-settings (the one you see in side-by-side settings) and three platform-specific ones

  • Packages/Default/Preferences (Linux).sublime-settings
  • Packages/Default/Preferences (OSX).sublime-settings
  • Packages/Default/Preferences (Windows).sublime-settings

each of which is applied on specific OS to override some of the global defaults.

Thus some of the defaults you see in the left view of side-by-side settings may not be the affective ones.

Values from all 4 files are overridden by user settings in Packages/User/Preferences.sublime-settings.

Note: “Default” package is shipped as sublime-package file. The easiest way to find said files is via Command Palette > View Package File

0 Likes

#3

Thank you! This is what I was misunderstanding. Appreciate the clarification.

0 Likes