Reputation: 1668
I found this link on stackoverflow: Sublime Text 2 how to change the font size of the file sidebar?
I followed the directions and changed the font size, but now the font is too big with too small of a line height, so it looks stacked on top of each other and cut off, without any room to breathe.
Is there a json label that I can use to change the line height/padding? Thanks.
Upvotes: 52
Views: 36610
Reputation: 21
Echoing Sazzadur Rahman's answer about bottom and top line paddings on Sublime Text 3, it works for reducing the line height (as in VS Code) as well by setting line paddings to negative values as follows [from Preferences
➜ Settings
].
{
"line_padding_top": -1,
"line_padding_bottom": -1,
}
side note: my intuition to reduce the line height is using my favorite monospaced font Fira Code in Sublime Text.
Upvotes: 2
Reputation: 2930
Go to Preferences>Settings-User and add this two line:
{
"line_padding_bottom": 3,
"line_padding_top": 3,
}
Upvotes: 152
Reputation: 3749
Go to Preferences > Browse Packages, then open folder Theme - Default
and open file Default.sublime-theme
in your editor. Search for sidebar_tree
and edit value row_padding
. It should be something like this:
{
"class": "sidebar_tree",
"row_padding": [8, 3], // increase second value e.g. [8, 6]
"indent": 12,
// ... more definitions ...
},
Upvotes: 9