如何在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楼

  1. On the menu bar, select WindowPreferences 在菜单栏上,选择“ 窗口”“首选项”
  2. Set the font size ( GeneralAppearanceColors and FontsStructured Text EditorsStructured Text Editor Text Font (set to default: Text Font)Edit... ). 设置字体大小( 常规外观颜色和字体结构化文本编辑器结构化文本编辑器文本字体(设置为默认值:文本字体)编辑... )。
  3. Save the preferences. 保存首选项。

#4楼

This worked for me: 这对我有用:

  1. On the Eclipse toolbar, select WindowPreferences . 在Eclipse工具栏上,选择WindowPreferences

  2. Set the font size ( GeneralAppearanceColors and FontsBasicText Font ): 设置字体大小( 常规外观颜色和字体基本文本字体 ):

    在此输入图像描述

  3. Save the preferences. 保存首选项。


#5楼

On Mac: 在Mac上:

  1. Eclipse toolbar Eclipse → Preferences OR Command + , (comma) Eclipse工具栏Eclipse→ 首选项 OR Command + (逗号)

  2. GeneralAppearanceColors and FontsBasicText Font 常规外观颜色和字体基本文本字体

  3. Apply 应用


#6楼

我倾向于使用菜单Windows首选项常规外观颜色和字体Java文本编辑器更改应用

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值