如何在 Eclipse Helios 中恢复默认颜色主题?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5951853/
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-19 16:17:14  来源:igfitidea点击:

How to restore default color theme in Eclipse Helios?

eclipsecolor-scheme

提问by chance

I read thisquestion and played with a color theme with dark background. It looks cool in Java editor but not for other editors. Then I tried to use the default color themes by clicking "Restore Defaults" buttons for ALLeditors in Preference dialog and refering to thisquestion. But in the file compare view the background is still black and the differences between compared files are hardly to discern.

我阅读了这个问题并使用了深色背景的颜色主题。它在 Java 编辑器中看起来很酷,但在其他编辑器中却不是。然后我尝试通过单击首选项对话框中所有编辑器的“恢复默认值”按钮并参考问题来使用默认颜色主题。但是在文件比较视图中,背景仍然是黑色的,比较文件之间的差异很难辨别。

Any way I can restore the backgound color in file compare view?

有什么办法可以在文件比较视图中恢复背景颜色?

回答by veysiertekin

just remove a few lines which are about color in:

只需删除几行关于颜色的行:

{workspace}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.editors.prefs

then restart your eclipse, that's it.

然后重新启动你的日食,就是这样。

回答by Kane

I think the answer is here in the questionmentioned by you. The theme plug-in modified below files under your workspace. You could switch to a new workspace, or remove the preference keys about color/font from those files.

我想答案就在你提到的问题中。主题插件修改在您工作区下的文件下面。您可以切换到新工作区,或从这些文件中删除有关颜色/字体的首选项键。

Essentially there are two files we want to copy or overwrite:

[workspace].metadata.plugins\org.eclipse.core.runtime.settings\org.eclipse.jdt.ui.prefs [workspace].metadata.plugins\org.eclipse.core.runtime.settings\org.eclipse.ui.editors.prefs

本质上,我们要复制或覆盖两个文件:

[工作区].metadata.plugins\org.eclipse.core.runtime.settings\org.eclipse.jdt.ui.prefs [工作区].metadata.plugins\org.eclipse.core.runtime.settings\org.eclipse.ui .editors.prefs

回答by Oseack

Kane's solution works. And user can also just delete

凯恩的解决方案有效。用户也可以删除

"...\workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings". 

Then restart Eclipse, do a little bit configuration, you are back to default theme.

然后重启Eclipse,做一点配置,就回到默认主题了。

回答by Vijay Gadde

To restore theme to default, remove only

要恢复theme to default,只删除

[workspace].metadata.plugins\org.eclipse.core.runtime.settings\org.eclipse.e4.ui.css.swt.theme.prefs

By doing this you will not loose other configurations that you have done,

通过这样做,您不会丢失已完成的其他配置,

Like Python interpretersettings.

喜欢Python interpreter设置。