增加 Sublime 侧栏中文本的字体大小 [英] Increase the font size of text in Sublime side bar

查看:31
本文介绍了增加 Sublime 侧栏中文本的字体大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 Sublime Text 3 中增加左侧栏的字体大小.我似乎找不到这样做的好方法.我正在使用默认主题,并且在 Mac 上.

I would like to increase the font size of the left side bar in Sublime Text 3. I can't seem to find a good way to do this. I am using the default theme, and am on Mac.

有人有什么建议吗?我不想安装自定义主题,但只是想增加侧边栏的字体大小.

Does anyone have a suggestion? I don't want to install a custom theme, but would just like to increase the font size of the side bar.

谢谢!

推荐答案

您需要编辑 .sublime-theme 文件来执行此操作.不幸的是,在 Sublime Text 3 中,这个文件包含在一个压缩的 .sublime-package 文件中,所以你需要先提取它.通过包控制安装PackageResourceViewer插件,然后点击ShiftP 并输入 prv 以显示 PackageResourceViewer 选项.选择Open Resource,向下滚动到Theme - Default,点击Enter,向下滚动到Default.sublime-theme,然后再次按 Enter 将其打开.

You will need to edit the .sublime-theme file to do this. Unfortunately, in Sublime Text 3 this file is contained in a zipped .sublime-package file, so you'll need to extract that first. Install the PackageResourceViewer plugin via Package Control, then hit ShiftP and type prv to bring up the PackageResourceViewer options. Select Open Resource, scroll down to Theme - Default, hit Enter, scroll down to Default.sublime-theme, and hit Enter again to open it.

接下来,搜索 sidebar_label 并将第一个(第 362 行)修改为如下所示(它需要是有效的 JSON):

Next, search for sidebar_label and modify the first one (on line 362) to look like this (it needs to be valid JSON):

{
    "class": "sidebar_label",
    "color": [0, 0, 0],
    "font.bold": false,
    "font.italic": false, // <-- add comma
    "font.size": 14 // <-- new line
    // , "shadow_color": [250, 250, 250], "shadow_offset": [0, 0]
},

保存文件,您应该会看到侧边栏字体大小发生变化.您可以将 14 更改为您想要的任何尺寸,具体取决于您的个人喜好.

Save the file, and you should see the sidebar font size change. You can change 14 to whatever size you want, depending on your personal preferences.

这篇关于增加 Sublime 侧栏中文本的字体大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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