Eclipse 2019 黑色背景

Пав*_*вел 7 eclipse eclipse-jdt

安装 2019-12 版本的 Eclipse 后,我无法在使用深色主题和默认颜色集时设置黑色背景。如果我在 General -> Editors -> Text Editors -> Appearance color options -> Background color 中更改颜色 - 我看到行号背景颜色更改为我的选择,而文本区域保持相同的深灰色,无论我选择什么颜色.

我试图手动编辑 epf 首选项并将它们导入回来,但即使这样也行不通。Eclipse 2019-12 中是否存在一些覆盖用户选择的更改/错误?有一些关于 Eclipse 颜色的问题已经得到解答,但我相信在最近的更改后它们没有帮助。

Пав*_*вел 9

对于那些通过谷歌搜索来到这里的人,您可以在一处更改 Java 编辑器、包资源管理器和大纲视图背景的颜色,请参阅文件

<..>.p2\pool\plugins\org.eclipse.ui.themes_<version>\css\dark\e4-dark_partstyle.css 
Run Code Online (Sandbox Code Playgroud)

然后编辑背景颜色

.MPart DependenciesComposite > SashForm > Section > * { /* Section > DependenciesComposite$... */
    background-color: #151515;
    color: #AAAAAA;
}
Run Code Online (Sandbox Code Playgroud)

我发现#151515比默认的更好。

  • 谢谢!这非常有帮助!仅供参考,在我的 Windows 系统上没有 .p2 目录或池子目录,该文件实际上是 &lt;my_eclipse_installation_dir&gt;\plugins\org.eclipse.ui.themes_1.2.900.v20200106-1021\css\dark\e4-dark_partstyle.css 。 (3认同)