如何在Eclipse中为Java文本编辑器更改字体大小?
本文翻译自:How can I change font size in Eclipse for Java text editors?
I have just tried to change my font size in Eclipse 3.6.0 in the following way: 我刚刚尝试通过以下方式在Eclipse 3.6.0中更改字体大小:
General → Appearance → Colors and Fonts → Java Editor text font 常规→外观→颜色和字体→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? 如何更改我在Eclipse中打开的所有Java文件和项目的字体大小?
#1楼
参考:https://stackoom.com/question/KeW1/如何在Eclipse中为Java文本编辑器更改字体大小
#2楼
你可以看看Eclipse颜色主题 ,它也有很多选项可用于自定义字体,背景颜色等。
#3楼
- On the menu bar, select Window → Preferences 在菜单栏上,选择“ 窗口” → “首选项”
- Set the font size ( General → Appearance → Colors and Fonts → Structured Text Editors → Structured Text Editor Text Font (set to default: Text Font) → Edit... ). 设置字体大小( 常规 → 外观 → 颜色和字体 → 结构化文本编辑器 → 结构化文本编辑器文本字体(设置为默认值:文本字体) → 编辑... )。
- Save the preferences. 保存首选项。
#4楼
This worked for me: 这对我有用:
On the Eclipse toolbar, select Window → Preferences . 在Eclipse工具栏上,选择Window → Preferences 。
-
Set the font size ( General → Appearance → Colors and Fonts → Basic → Text Font ): 设置字体大小( 常规 → 外观 → 颜色和字体 → 基本 → 文本字体 ):
Save the preferences. 保存首选项。
#5楼
On Mac: 在Mac上:
Eclipse toolbar Eclipse → Preferences OR Command + , (comma) Eclipse工具栏Eclipse→ 首选项 OR Command + , (逗号)
General → Appearance → Colors and Fonts → Basic → Text Font 常规 → 外观 → 颜色和字体 → 基本 → 文本字体
Apply 应用
#6楼
我倾向于使用菜单Windows → 首选项 → 常规 → 外观 → 颜色和字体 → Java文本编辑器 → 更改 → 应用 。