Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Increase Sidebar Font-size Sublime Text 3

Tags:

sublimetext3

I've been trying to increase the size of my SBT 3 sidebar font-size.

I've tried follow everything on this post here : Sublime Text 3 how to change the font size of the file sidebar?

I've tried

Try #1

"dpi_scale": 1.10 

Try #2

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

I kept getting

How would one go about and debug this further?

like image 867
code-8 Avatar asked Apr 17 '19 14:04

code-8


People also ask

How do you change the size of the text bar?

To change your display in Windows, select Start > Settings > Accessibility > Text size. To make only the text on your screen larger, adjust the slider next to Text size. To make everything larger, including images and apps, select Display , and then choose an option from the drop-down menu next to Scale.

How do you increase toolbar font size?

Click the Customize and Control button on the browser toolbar. Step 2. Increase or decrease the font size by clicking the + (plus) or - (minus) in the Zoom section of the menu. The browser's default zoom level is 100%.

How do I change the font size in Sublime Text editor?

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 . The changes are visible when you save the user preferences file.


2 Answers

  1. Navigate to Sublime Text -> Preferences -> Browse Packages will open folder
  2. See Packages Folder then Open User Folder
  3. Now check your current theme at your settings. i use this theme "theme": "Material-Theme-Darker.sublime-theme",
  4. If you do not have theme file yet. create one
[
    {
        "class": "sidebar_label",
        "font.face": "Gotham",
        "font.size": 12
    }
]

Sidebar Font Changed!

like image 152
Kotzilla Avatar answered Sep 22 '22 11:09

Kotzilla


The #1 option above for changing the dpi_scale may be problematic for you. dpi_scale is only supported on Linux; if you're not on that platform you should use ui_scale (which works everywhere, including Linux). However, these both change the scale of everything, not just the side bar, so this may not have the effect that you want. You also need to restart Sublime when you make changes to those particular setting for it to take effect.

As such, your #2 option above is generally the better way to go about this. The information is correct, but it needs to be specified as a part of your Theme, not in your user preferences; that's why adding it there is breaking things.

You want to examine your user preferences for the value of the theme setting; if you haven't explicitly set one, use the value from the default settings on the left of the window instead. For this example, here's what my theme is set to:

    "theme": "Adaptive.sublime-theme",

To activate the changes above, you want to create a file with the same name as your current theme and place it in your User package (use Preferences > Browse Packages... if you're not sure where that is). So in this case, I would create a file named Adaptive.sublime-theme.

Once you save the file, it will immediately take effect, so you should know if you did it correctly or not (the main point is that the file needs to have the correct name and extension). When Sublime loads your theme, it loads all files by that name from every package and combines them together, so this will augment your existing theme and update only the rules that you want, leaving everything else as it was.

Also note that as outlined above, this will disable bolding in your side bar and also make the text black; presumably that's what you intended to do, but if not, the only parts you need are the class to specify what the rule is changing and the font.size.

like image 39
OdatNurd Avatar answered Sep 21 '22 11:09

OdatNurd