每次退出时,Eclipse Color Theme 都会恢复为默认值

Eclipse Color Theme reverts to default every time I exit

我在 Eclipse Luna 中使用本机 "Dark" 主题,然后使用 Eclipse Color Theme 插件选择一些不同的编辑器主题。问题是,每次我打开 Eclipse 时,它​​都使用原生 Dark 主题附带的默认设置,我每次都必须去为编辑器设置我的 Color Theme。

有什么方法可以让它记住我的颜色主题设置?

这个解决方案对我有用:尝试将其更改为经典并重新启动计算机。然后改回Dark Theme,现在重启Eclipse后会记住颜色主题。

以下在 Eclipse Neon 中对我有用:

@djgeary @jdeyton Try enabling Oomph preferences recorder in Eclipse Mars settings (icon in settings window at bottom part of the screen, near help icon). After that set theme and that it. Next time you launch eclipse Oomph should restore correct theme settings.

归功于 dovydasvenckus for answer on github, here

打开首选项 -> Oomph -> 首选项记录器 -> 启用 然后再次设置主题,这次Oomph会录制

要将 Dark 主题设置为 "global" 主题,以及您从 Market Place 安装的 Eclipse Color Theme 中您喜欢的主题,您可以执行以下操作。我用过:

  1. windows 10(64 位,但对于 32 位可能是相同的)
  2. 蚀氧

步骤:

  1. 将"global"主题设置为深色主题:(Windows>Preferences>General>Appearance>Theme:Dark)
  2. 关闭日食。 (您可以更改颜色主题,让我们说识别眼睛 - 这是我最喜欢的 -)
  3. 重新打开eclipse。 (如果您更改了颜色主题,您将使用默认的深色主题,因为您正在阅读本文)
  4. 打开文件资源管理器并查找 C:\Users\[user]\eclipse-workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings
  5. 打开org.eclipse.e4.ui.css.swt.theme
  6. = 之后复制文本,然后 将其保存在剪贴板中 ,在我的例子中是 org.eclipse.e4.ui.css.theme.e4_dark
  7. (在 eclipse 中)将架构设置为默认值,然后关闭应用程序。
  8. 打开 eclipse 并选择您喜欢的颜色主题。
  9. 关闭日食。
  10. 再次转到文件 org.eclipse.e4.ui.css.swt.theme 并在 =.[=38 之后粘贴剪贴板中的内容(themeid=org.eclipse.e4.ui.css.theme.e4_dark,在我的例子中) =]

我遇到了同样的问题 (Eclipse Neon)。什么对我有用:

  1. http://www.eclipsecolorthemes.org/
  2. 下载主题的 EPF 文件
  3. 打开 Eclipse 并转到 "File" > "Import" > "General" > "Preferences" [下一步]
  4. Select "Browse" 文件对话框中的 EPF 文件 [打开] [完成]

更多信息:http://www.eclipsecolorthemes.org/?view=how-to-use

终于让我记住语法着色了。我所要做的就是进行一些更改,单击导出(全部导出),然后重新导入 .epf 文件。不知道为什么这对我有用,但希望有人觉得它有用。

这里的任何内容都不适合我。我什至删除了工作区并创建了一个新工作区。 我唯一保留的是包含 eclipse 项目文件和 java 内容的 git 存档。 在前 30 秒重新启动后,它似乎仍然有效。然后编辑器中的颜色突然发生变化并且 org.eclipse.e4.ui.css.swt.theme 文件的内容将主题更改为“...默认:”,最后带有一些数字。

我没有安装插件,只有从eclipse.org

下载的包