Sublime Text 3 如何更改文件侧边栏的字体大小? [英] Sublime Text 3 how to change the font size of the file sidebar?
问题描述
尽管我尝试在Theme-Default"包中的Label_control"和sidebar_control"等类中修改font.size",但编辑器的字体大小根本没有改变.sublime text3 有什么不同吗?
答案是省略了方括号,如果是从头开始创建文件.
总结一下,对于没有Default.sublime-theme
文件(实际上是默认配置)的ST3用户,最简单的步骤是:
- 导航到 Sublime Text -> 首选项 -> 浏览包
- 打开
User
目录 - 创建一个名为
Default.sublime-theme
的文件(如果你使用的是默认主题,否则使用主题名称,例如Material-Theme-Darker.sublime-theme
code>) 包含以下内容(根据需要修改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:
- Navigate to Sublime Text -> Preferences -> Browse Packages
- Open the
User
directory - 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 (modifyfont.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屋!