更改 Sublime Text 3 中标签条的字体大小 [英] Changing font size of tabs strip in Sublime Text 3

查看:45
本文介绍了更改 Sublime Text 3 中标签条的字体大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了 这个答案,在 Sublime 3 帮助,我设法在我的 Sublime Text 3 中移植了解决方案并更改了侧边栏的字体大小(和其他属性).

I used this answer, with a little bit help of Sublime 3 Help, I managed to port solution and change font size (and other attributes) of sidebar in my Sublime Text 3.

但是如何更改(更大)ST3 标签条使用的字体大小?如果可能的话.我发现使用 10 pt 字体大小绘制的文件名选项卡在 FullHD 分辨率屏幕上不太舒服.至少对我来说是这样.

But how can I change (to larger) font size used by ST3 tab strip? If it is possible at all. I find filename tabs drawn with 10 pt font size quite not so comfortable on FullHD resolution screen. At least for my eyes.

推荐答案

如您链接到的答案中所述,找到您的 .sublime-theme 文件.打开它并搜索 tab_label.该部分应如下所示:

As outlined in the answer you linked to, find your <theme>.sublime-theme file. Open it up and search for tab_label. The section should look something like this:

{
    "class": "tab_label",
    "font.size": 12, 
    "font.face": "Ubuntu"
},

根据您的喜好修改它并保存文件.您应该立即看到更改.

Modify it according to your preferences and save the file. You should see the changes immediately.

要更改标签尺寸,您可以使用以下部分:

To change the tab dimensions you can use the following section:

{
    "class": "tabset_control",
    "tab_height": 42,
    "tab_width": 160,
    "tab_min_width": 48
},

注意:较大的字体大小(例如在我的系统上 > 12pt)会被截断,即使相应地调整了标签高度.这是一个众所周知的错误.

Note: Larger font sizes (e.g. > 12pt on my system) will get cut off, even if the tab height is adjusted accordingly. This is a well-known bug.

这篇关于更改 Sublime Text 3 中标签条的字体大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆