Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change Sublime sidebar font size on macOS

Tags:

I would like to increase the font size of the left side bar in Sublime Text 3. I can't seem to find a good way to do this. I am using the default theme, and am on Mac.

Does anyone have a suggestion? I don't want to install a custom theme, but would just like to increase the font size of the side bar.

Thanks!

like image 566
Gurpreet Avatar asked Apr 13 '14 17:04

Gurpreet


People also ask

How do I change the sidebar font size in sublime?

Navigate to Sublime Text>Preferences>Browse Packages. You should see a file tree. Open that file and find the "class": "sidebar_label: entry and add "font. size".

How do I change the font size in sublime text on a Mac?

It's actually command-plus and command-minus, but you're right, it has a keyboard shortcut. I never noticed the menu item under Sublime Text 2 > Preferences > Font > Larger/Smaller, probably because I was looking for other terms like Bigger or Shrink.

How do I change the font weight in Sublime Text?

Use the Preferences > Browse Packages menu shortcut and see that in the Color Schemes folder you will have a Monokai. tmTheme file. Open and edit this file to make some text look italic. For your desired effect, you would choose bold instead of italics for the fontStyle string.

How do I reduce the size of Sublime Text?

Press ctrl + to increase font and ctrl shift + to decrease font size.


2 Answers

You will need to edit the .sublime-theme file to do this. Unfortunately, in Sublime Text 3 this file is contained in a zipped .sublime-package file, so you'll need to extract that first. Install the PackageResourceViewer plugin via Package Control, then hit ShiftP and type prv to bring up the PackageResourceViewer options. Select Open Resource, scroll down to Theme - Default, hit Enter, scroll down to Default.sublime-theme, and hit Enter again to open it.

Next, search for sidebar_label and modify the first one (on line 362) to look like this (it needs to be valid JSON):

{
    "class": "sidebar_label",
    "color": [0, 0, 0],
    "font.bold": false,
    "font.italic": false, // <-- add comma
    "font.size": 14 // <-- new line
    // , "shadow_color": [250, 250, 250], "shadow_offset": [0, 0]
},

Save the file, and you should see the sidebar font size change. You can change 14 to whatever size you want, depending on your personal preferences.

like image 164
MattDMo Avatar answered Oct 18 '22 14:10

MattDMo


Thanks for this, just to add that, with sublime text 3 at least, i needed to modify the theme I use. e.g. Flatland Dark.sublime-theme

like image 43
Joel Sugarman Avatar answered Oct 18 '22 15:10

Joel Sugarman