简体   繁体   English

Sublime Text 2 - 如何更改输出面板的字体大小?

[英]Sublime Text 2 - How to change the font size of the output panel?

When I change the font size in Sublime Text 2 (via shortcuts / config), the font size of text in output panel AKA Build Results is changed too. 当我在Sublime Text 2(通过快捷方式/配置)中更改字体大小时,输出面板AKA Build Results中文本的字体大小也会更改。

It would be convenient to have these font sizes separated. 将这些字体大小分开会很方便。 I tried to follow & adapt Sublime Text 2 how to change the font size of the file sidebar? 我试图关注和改编Sublime Text 2如何更改文件侧边栏的字体大小? and edited <theme name>.sublime-theme : 并编辑了<theme name>.sublime-theme

{
    "class": "output.exec",
    //"class": "output",
    //"class": "output_exec",
    //"class": "exec",
    //"parents": [{"class": "output"}],
    "font.size": 7.0
},

Output panel is named output.exec , but it doesn't work. 输出面板命名为output.exec ,但它不起作用。 Some other options I tried are commented out. 我尝试的其他一些选项已被注释掉。

Probably I just need correct class name. 可能我只需要正确的class名称。 I'm unable to find class list which are used in ST2. 我无法找到ST2中使用的班级列表。

Is it possible and if yes - how to change the font size? 是否可能,如果是 - 如何更改字体大小?

EDIT: 编辑:
It's already on wishlist: http://sublimetext.userecho.com/topic/27388-set-font-size-per-pane/ 它已经在愿望清单上: http//sublimetext.userecho.com/topic/27388-set-font-size-per-pane/

Yes you can, this will however change the font-size for the console panel as well, so if that doesn't bother you then simply do this: 是的,你可以,但这也将改变console panel的字体大小,所以如果这不打扰你,那么只需这样做:

First create a file named Widget.sublime-settings under the Packages\\User directory. 首先在Packages\\User目录下创建一个名为Widget.sublime-settings的文件。

Second write the following in that file: 第二次在该文件中写下以下内容:

{
    "font_size": 7
}

Now you're good to go! 现在你很高兴去!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM