Sublime Text 3 如何更改文件侧边栏的字体大小? [英] Sublime Text 3 how to change the font size of the file sidebar?

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

问题描述

尽管我尝试在Theme-Default"包中的Label_control"和sidebar_control"等类中修改font.size",但编辑器的字体大小根本没有改变.sublime text3 有什么不同吗?

解决方案

答案是省略了方括号,如果是从头开始创建文件.

总结一下,对于没有Default.sublime-theme文件(实际上是默认配置)的ST3用户,最简单的步骤是:

  1. 导航到 Sublime Text -> 首选项 -> 浏览包
  2. 打开User目录
  3. 创建一个名为Default.sublime-theme的文件(如果你使用的是默认主题,否则使用主题名称,例如Material-Theme-Darker.sublime-themecode>) 包含以下内容(根据需要修改 font.size):

<小时><预><代码>[{"class": "sidebar_label",颜色":[0, 0, 0],font.bold":假,字体大小":12},]

作为参考,这里有完整的文件(在 ST2 中找到).>

Ubuntu 18.04

Ubuntu 18.04 上的主题设置位置,通过sudo apt install sublime-text 安装:

~/.config/sublime-text-3/Packages/User/Default.sublime-theme

MacOS

MacOS 上的主题设置位置,通过 DMG 安装:

~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/Default.sublime-theme

Though I have tried to modify "font.size" in classes like "Label_control" and "sidebar_control" in the Package "Theme-Default", the font size of the editor does not change at all. Is there anything different in sublime text3?

解决方案

The answers are omitting the square brackets, in the case one is creating the file from scratch.

To recap, for the ST3 users who don't have the Default.sublime-theme file (which is actually the default configuration), the simplest procedure is:

  1. Navigate to Sublime Text -> Preferences -> Browse Packages
  2. Open the User directory
  3. Create a file named Default.sublime-theme (if you're using the default theme, otherwise use the theme name, e.g. Material-Theme-Darker.sublime-theme) with the following content (modify font.size as required):


[
    {
        "class": "sidebar_label",
        "color": [0, 0, 0],
        "font.bold": false,
        "font.size": 12
    },
]

For reference, here there is the full file (as found in ST2).

Ubuntu 18.04

Location of theme setting on Ubuntu 18.04, installed via sudo apt install sublime-text:

~/.config/sublime-text-3/Packages/User/Default.sublime-theme

MacOS

Location of theme setting on MacOS, installed via DMG:

~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/Default.sublime-theme

这篇关于Sublime Text 3 如何更改文件侧边栏的字体大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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