如何更改 Eclipse 中的所有字体大小?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12126628/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I change all font sizes in Eclipse?
提问by Yao Liu
Regarding Stack Overflow question How can I change font size in Eclipse for Java text editors?:
关于堆栈溢出问题如何在 Eclipse 中为 Java 文本编辑器更改字体大小?:
This question asks how to change the font size in an editor window. But is there a way to change all the font sizes for the entire Eclipse GUI?
这个问题询问如何在编辑器窗口中更改字体大小。但是有没有办法改变整个 Eclipse GUI 的所有字体大小?
回答by Tomer Mor
Go to Window->Preferences, General->Appearance->Colors and Fonts
转到窗口->首选项,常规->外观->颜色和字体
Go to basic. Look for text fontand text editor.
转到基本。寻找文本字体和文本编辑器。
回答by Mallik
To change fonts in the Eclipse workspace with Linux, Ubuntu 10.04(Lucid Lynx), I modified system fonts desktop → System→ Preferences→ Appearance→ Fonts.
要使用 Linux、Ubuntu 10.04(Lucid Lynx)更改 Eclipse 工作区中的字体,我修改了系统字体桌面 → System→ Preferences→ Appearance→ Fonts。
I also modified Eclipse v3.7 (Indigo) → menu Windows→ Preferences→ General→ Appearances→ Colors and Fonts. It reflected in Eclipse.
我还修改了 Eclipse v3.7 (Indigo) → menu Windows→ Preferences→ General→ Appearances→ Colors and Fonts。它反映在 Eclipse 中。
回答by user70944
To change eclipse package explorer font size on windows 7
在 Windows 7 上更改 Eclipse 包资源管理器字体大小
Open below file location where your eclipse exe file is present
打开下面的文件位置,您的 eclipse exe 文件所在的位置
eclipse\plugins\org.eclipse.ui.themes_1.0.1.v20141126-1957\css/e4_default_win7.css
add
添加
.MPart Tree{
font-size: 12;
}
Restart the eclipse for the changes to reflect
重新启动 eclipse 以反映更改
回答by Mihail Kostira
Add to Eclipse\plugins\org.eclipse.ui.themes_<version>\css\dark\e4-dark_globalstyle.css
:
添加到Eclipse\plugins\org.eclipse.ui.themes_<version>\css\dark\e4-dark_globalstyle.css
:
* {
font-size: 13;
}
Depending on the Eclipse version and theme (I'm using dark theme!) you are using, you might need to add this to another css file, e.g. e4_basestyle.css
.
根据您使用的 Eclipse 版本和主题(我使用的是深色主题!),您可能需要将其添加到另一个 css 文件中,例如e4_basestyle.css
.