Sublime Forum

Set default text size?

#1

Hi! How can I change the default test size Sublime Text falls back to when I press CTRL-0? It’s currently set to “10” but that is way too small for me.

And, additional question: If is press CTRL-0 it even deletes my custom text-size in settings, is this a bug?

0 Likes

#2

Ctrl+0 moves the focus to the sidebar, which is not related to font size. Is your issue reproducable in safe mode?

0 Likes

#3

You’re right, I see now that I once customized this by
{
“keys”: [“ctrl+0”],
“command”: “reset_font_size”
}
Anyways, so I basically can’t set the font size the command ‘reset_font_size’ calls back to?

0 Likes

#4

Indeed; the commands for this that are built in either modify the global preference or remove it. The SO link below describes this in more detail and includes a plugin example that implements a new setting so that you can control what the default returns to.

In addition, this plugin shows a reimplementation of all of the commands so that you can adjust the font size only for individual files as well. This isn’t something you asked for specifically, but since it’s adjacent in functionality and also asked about, I thought I’d throw it in here to help future people that land here searching for the same thing.

https://stackoverflow.com/questions/46790515/sublime-text-3-reset-font-size-to-custom-font-size/46823776#46823776

1 Like