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