Eclipse统治者背景颜色

时间:2012-07-11 21:21:02

标签: eclipse

  1. 如何更改eclipse Vertical Ruler背景颜色?
  2. 包含折叠圆圈的标尺/列的名称是什么?
  3. 如何更改上述标尺/ clomun的背景颜色?

4 个答案:

答案 0 :(得分:3)

what is name of the ruler/column that includes the folding circles?

它被称为代码折叠边距,或简称折边。

How can I change eclipse Vertical Ruler background color?
How can I change the background color of the above ruler/clomun?

我担心Eclipse有许多不可自定义的UI设置,这两者都属于这些设置。已经提出功能请求以允许更改代码折叠边距。 Background color for code folding鉴于请求已经存在超过5年,我对你得到解决方案并不十分乐观。你可以对这个问题发表评论来提高它。

您还可以在他们的bugtracker页面上发出功能请求。 https://bugs.eclipse.org/bugs/

答案 1 :(得分:1)

通常我使用Eclipse提供的默认设置使用我的颜色,但我知道许多人喜欢Eclipse的替代外观(通常使用黑暗主题),所以,我决定尝试一下......

要更改默认颜色,您需要在窗口中查看一些地方>偏好菜单:

General > Editors > Text Editors (to set the background color / selection color, etc. for all editors)

General > Editors > Text Editors > Annotations (to set the colors for the occurrences highlight, tasks, etc.)

Pydev > Editor (to set the pydev editor-related colors)

General > Appearance > Colors an Fonts (to set what's not available in the other places)

现在,在您正确设置这些颜色后,您应该做的一件事就是导出刚刚更改的首选项,以便以后可以导入它们。

为此,请转到文件>出口>首选项并将所有首选项导出到文件,然后打开该文件并删除所有非颜色相关的首选项(执行导入时Eclipse需要的file_export_version除外) - 请注意,您可以保留其他所有首选项时间也是如此,使用干净的Eclipse安装可以更容易地使用您想要配置的内容(这样您在首选项文件中没有太多的首选项)。

稍后,您可以通过File>在Eclipse中导入这些首选项。导入>偏好。

我正在使用的黑暗主题的首选项给出了下面的结果(请注意,您可能必须重新启动Eclipse,以便左标尺看起来正确):

答案 2 :(得分:0)

您只能使用偏好设置 - >配置垂直标尺中显示的内容。一般 - >编辑 - >文字编辑 - >注释。你不能禁用它..希望这有帮助!

答案 3 :(得分:0)

这不是一个彻底的答案,但这是我在调试时提取的SWT间谍日志:

<input type="button" id="btn" value = "Search"></button>

``