如何在 Eclipse 中设置代码的默认前景色?

How do you set the default foreground color for code in Eclipse?

选项 Window > 首选项 > 常规 > 外观 > 颜色和字体 > 基本 > 文本字体 允许您仅设置默认字体,而不是颜色。

基本颜色在 'Appearance color options' 中 'General > Editors > Text Editors' 中的首选项中定义。

个别编辑者可以定义更多颜色,这些颜色可能会覆盖这些设置。对于 Java 编辑器,这些在 'Java > Editor > Syntax Coloring'.

的首选项中