Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text 3 how to change the font size of the file sidebar?

Though I have tried to modify "font.size" in classes like "Label_control" and "sidebar_control" in the Package "Theme-Default", the font size of the editor does not change at all. Is there anything different in sublime text3?

like image 220
zhxchen17 Avatar asked Aug 17 '13 12:08

zhxchen17


People also ask

How do I open the sidebar in Sublime Text 3?

If you open the ST console (View menu -> Show Console) and type/paste sublime. log_commands(True) Enter and then right click in the main text area and select Reveal in Sidebar , you'll see in the console the name of the command being executed.

How do I change the font in Sublime Text 3?

Open the Sublime Text settings file: Mac OS X: Sublime Text 3 > Preferences > Settings - User. Windows: Preferences > Settings - User. Linux: Preferences > Settings - User.

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

Instead, you specify custom preferences in the user settings file. User settings override default settings. For example, the default editor font size is 10pt. If you want 14pt text, copy the font-size attribute into the user prefernces file and change 10 to 14 .


2 Answers

The answers are omitting the square brackets, in the case one is creating the file from scratch.

To recap, for the ST3 users who don't have the Default.sublime-theme file (which is actually the default configuration), the simplest procedure is:

  1. Navigate to Sublime Text -> Preferences -> Browse Packages
  2. Open the User directory
  3. Create a file named Default.sublime-theme (if you're using the default theme, otherwise use the theme name, e.g. Material-Theme-Darker.sublime-theme) with the following content (modify font.size as required):

[     {         "class": "sidebar_label",         "color": [0, 0, 0],         "font.bold": false,         "font.size": 12     }, ] 

For reference, here there is the full file (as found in ST2).

Ubuntu 18.04

Location of theme setting on Ubuntu 18.04, installed via sudo apt install sublime-text:

~/.config/sublime-text-3/Packages/User/Default.sublime-theme 

MacOS

Location of theme setting on MacOS, installed via DMG:

~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/Default.sublime-theme 
like image 130
Marcus Avatar answered Oct 03 '22 23:10

Marcus


On Ubuntu, for versions of Sublime older than 3.2, what worked for me was changing the dpi scale in Preferences > Settings — User by adding this line:

"dpi_scale": 1.10  

For Sublime 3.2, you can use the following line instead:

"ui_scale": 1.10 

Adjust the scale value as needed. After this change, you have to restart Sublime Text for it to take effect.

like image 27
Youssef Avatar answered Oct 03 '22 21:10

Youssef