如何在Eclipse for 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
- 设置字体大小,常规→外观→颜色和字体→ 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 首选项菜单(不再命名为 Window 菜单).
Per comment below, this has moved to the Eclipse Preferences menu (no longer named the Window menu).
窗口菜单再次生效,即菜单 Window →首选项.
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 for Java文本编辑器中更改字体大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!