如何更改 Eclipse 中的默认文本字体?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17064649/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 21:45:01  来源:igfitidea点击:

How do I change the default text font in Eclipse?

eclipsefontseditordefault

提问by Adam Matan

How do I set the default font size in Eclipse?

如何在 Eclipse 中设置默认字体大小?

I'd like to set a default for unrecognized file types, like shell scripts and text files.

我想为无法识别的文件类型设置默认值,例如 shell 脚本和文本文件。

回答by Adam Matan

Software Salariman has posted a solution - "Change Default Text Font in Eclipse".

软件 Salariman 发布了一个解决方案 - “在 Eclipse 中更改默认文本字体”。

The default font is set in:

默认字体设置在:

Menu WindowPreferencesGeneralAppearanceColors and fontsBasic/Text Font.

Menu WindowPreferencesGeneralAppearanceColors and fontsBasic/Text Font

回答by IR Rajib

Use menu WindowPreferencesGeneralAppearanceColors and fontsBasicText FontEdit.

使用菜单WindowPreferencesGeneralAppearanceColors and fontsBasicText FontEdit

Here you can change your preferred font and size.

您可以在此处更改首选字体和大小。

回答by thonnor

As a side note to this, using Eclipse v4.3 (Kepler), I have just opened up Eclipse on my shiny new works laptop and everything was in Segoe UIfont - Bizarre.

附带说明一下,使用 Eclipse v4.3 (Kepler),我刚刚在我闪亮的新笔记本电脑上打开了 Eclipse,所有东西都是Segoe UI字体 - Bizarre。

I used the following to reset everything as the previous examples didn't seem to format XML and a few other types very well...

我使用以下内容重置所有内容,因为前面的示例似乎没有很好地格式化 XML 和其他一些类型......

GeneralAppearanceColors and FontsStructured Text EditorsStructured Text Editor Text font (overrides...)

常规外观颜色和字体结构化文本编辑器结构化文本编辑器 文本字体(覆盖...)

Once I set this to Consolas it seems to have set everything to Consolas :)

一旦我将其设置为 Consolas,它似乎已将所有内容都设置为 Consolas :)