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
"dpi_scale": 1.10
[
{
"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?
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.
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%.
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.
"theme": "Material-Theme-Darker.sublime-theme",
[
{
"class": "sidebar_label",
"font.face": "Gotham",
"font.size": 12
}
]
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With