如何在 Eclipse 中为 Java 文本编辑器更改字体大小? [英] How to change font size in Eclipse for Java text editors?
问题描述
我刚刚尝试通过以下方式更改 Eclipse 3.6.0 中的字体大小:
I have just tried to change my font size in Eclipse 3.6.0 in the following way:
将军 →外观→颜色和字体 →Java 编辑器文本字体
General → Appearance → Colors and Fonts → Java Editor text font
然而,字体大小只在我打开的文件中改变.如何更改在 Eclipse 中打开的所有 Java 文件和项目的字体大小?
However, the font size only changed in the file I had open. How can I change the font size for all Java files and projects I open in Eclipse?
推荐答案
如果您正在更改字体大小,但它仅适用于当前打开的文件,那么我怀疑您更改了错误的首选项.
If you are changing the font size, but it is only working for the currently open file, then I suspect that you are changing the wrong preferences.
- 在 Eclipse 工具栏上,选择 Window → Preferences
- 设置字体大小,General → Appearance → 颜色和字体 → Java → Java编辑器文本字体).
- 保存首选项.
- On the Eclipse toolbar, select Window → Preferences
- Set the font size, General → Appearance → Colors and Fonts → Java → Java Editor Text Font).
- Save the preferences.
检查您是否没有针对每个项目的首选项.这些将覆盖顶级首选项.
Check that you do not have per-project preferences. These will override the top-level preferences.
根据下面的评论,这已移至 Eclipse Preferences 菜单(不再命名为 Window 菜单).
Per comment below, this has moved to the Eclipse Preferences menu (no longer named the Window menu).
Window 菜单又复活了,即菜单Window → Preferences.
The Window menu is live again, that is, menu Window → Preferences.
注意请务必查看 ChandraBhan Singh 的回答,它显示了键绑定更改字体大小.
Note Be sure to check out the ChandraBhan Singh's answer, it shows the key bindings to change the font size.
这篇关于如何在 Eclipse 中为 Java 文本编辑器更改字体大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!