简体   繁体   English

如何在eclipse中更改搜索背景颜色

[英]How to change search background color in eclipse

I've been searching for about 40 minutes now and this is just so frustrating... 我一直在寻找约40分钟,这真是令人沮丧......

The standard search result background color in eclipse is freaking white and black. 日食中的标准搜索结果背景颜色是白色和黑色。 Everytime I search something I have to scan the screen for like 50 seconds before I find the spot where Eclipse has found something. 每当我搜索一些东西时,我必须扫描屏幕50秒才能找到Eclipse找到的东西。 I don't know which goon set it this way but he must be working with the goon who programmed the interface for configuring the colors... I can't find it. 我不知道哪种方式设置它,但他必须与编程界面配置颜色的goon一起工作......我找不到它。

Where do I change the background color of search results? 我在哪里更改搜索结果的背景颜色?

I feel ashamed to have to ask this here... but the things I've tried, like setting it in general>editors>text-editors>annotations didn't work. 我在这里问这个问题感到很惭愧......但是我尝试过的东西,比如设置它>编辑器>文本编辑器>注释都不起作用。

In the Eclipse menu bar: Windows->Preferences->General->Editors->Text Editors->Annotations 在Eclipse菜单栏中:Windows-> Preferences-> General-> Editors-> Text Editors-> Annotations

Then scroll down to "Search Results" and set the highlighted text color. 然后向下滚动到“搜索结果”并设置突出显示的文本颜色。

This works for Eclipse Helios and Eclipse Juno. 这适用于Eclipse Helios和Eclipse Juno。 I haven't tested other versions. 我还没有测试过其他版本。

This may not be true for all modes, but I'm using Eclipse with Flash Builder plugin on Mac, and it turned out I had to modify the current selection highlight: 对于所有模式可能都不是这样,但我在Mac上使用Eclipse和Flash Builder插件,结果我不得不修改当前的选择亮点:

General -> Editors -> Text Editors -> Selection Background Color 常规 - >编辑器 - >文本编辑器 - >选择背景颜色

I am not sure I understand what you mean, but this might help, go to: 我不确定我明白你的意思,但这可能会有所帮助,请访问:

Eclipse -> Preferences -> General -> Search there is a line in the right that reads: "Foreground color for potential matches" and it has a box right next to it where you can change the colors. Eclipse - > Preferences - > General - > Search在右边有一行显示:“潜在匹配的前景颜色”,它旁边有一个框,您可以在其中更改颜色。 You can change the color of the search. 您可以更改搜索的颜色。 Otherwise, you can also change the colors of what Eclipse highlights by going to: 否则,您还可以通过以下方式更改Eclipse突出显示的颜色:

Eclipse -> Preferences -> General -> Appearance -> Colors and Fonts -> Match Highlight background color Eclipse - >首选项 - >常规 - >外观 - >颜色和字体 - >匹配突出显示背景颜色
and change the color there. 并改变那里的颜色。

Hope this helps! 希望这可以帮助! You can also look at this webpage: 您还可以查看此网页:

http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Fconcepts%2Faccessibility%2Ffontsandcolors.htm http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Fconcepts%2Faccessibility%2Ffontsandcolors.htm

同样在搜索结果窗口(列出树中的所有发现)中,背景颜色在不同的设置下: Windows->Preferences->General->Appearance->Colors and Fonts->Match highlighting background color

You can change search background color like this: (works for Luna and previous versions) 您可以像这样更改搜索背景颜色:(适用于Luna和以前的版本)

In the Eclipse menu bar: Windows->Preferences->General->Editors->Text Editors->Annotations Then scroll down to "Search Results" and set the highlighted text color. 在Eclipse菜单栏中:Windows-> Preferences-> General-> Editors-> Text Editors-> Annotations然后向下滚动到“Search Results”并设置突出显示的文本颜色。

Old question but I will add my findings. 老问题,但我会添加我的发现。 I'm using a MacBook Pro Using Eclipse Mars.1, while I do a 'text' search (using Emacs). 我正在使用MacBook Pro使用Eclipse Mars.1,而我正在进行“文本”搜索(使用Emacs)。 To set the search highlight (or background) color I do the following: Preferences->General->Editors->Text Editors see the Appearance color options section. 要设置搜索突出显示(或背景)颜色,请执行以下操作: Preferences->General->Editors->Text Editors请参阅Appearance color options部分。 Highlight the Selection background color and use the color palette to set your desired color. 突出显示“ Selection background color并使用调色板设置所需的颜色。 It is somewhat frustrating as the only way I could get this to work is to restart Eclipse. 这有点令人沮丧,因为我可以让它工作的唯一方法是重启Eclipse。 After the restart I am happy. 重启后我很高兴。

If you mean (as I think you do) how do you change the highlight colour of strings that match what you select in an editor (eg you double-click on 'filename' and Eclipse highlights other references to 'filename' in a dull grey background), then the following post answers this: Eclipse: How do you change the highlight color of the currently selected method/expression? 如果你的意思是(我认为你这样做)你如何改变与你在编辑器中选择的字符串相匹配的字符串的高亮颜色(例如,双击'filename',Eclipse突出显示其他对'filename'的暗淡灰色的引用然后,以下帖子回答这个问题: Eclipse:如何更改当前所选方法/表达式的突出显示颜色?

In a nutshell, you want: * General -> Editors -> Text Editors -> Annotations * Look for "Occurrences" in the Annotation types list and change it from grey to your favourite colour! 简而言之,您需要:*常规 - >编辑器 - >文本编辑器 - >注释*在注释类型列表中查找“出现次数”并将其从灰色更改为您喜欢的颜色!

Same as @bityz's answer, except for me the annotation which mattered was "Occurrences". 与@ bityz的答案相同,除了我之外,重要的注释是“出现次数”。 I tried this on Eclipse 4.3 Kepler. 我在Eclipse 4.3 Kepler上试过这个。

To highlight the matching keywords in Juno 突出显示Juno中匹配的关键字

Windows->Preferences->General->Text Editor-.Annotations-> in Annotation Types box, look for Write Occurrences. Windows-> Preferences-> General-> Text Editor-.Annotations->在Annotation Types框中,查找Write Occurrences。 Change the color there. 改变那里的颜色。

I have also found, if you are looking at C++ code (at least in Eclipse Mars 2), changing the following option will set the highlight color of all occurrences of your current (or most recent) search, in case this is what you are looking for: 我还发现,如果你正在查看C ++代码(至少在Eclipse Mars 2中),更改以下选项将设置当前(或最近)搜索的所有实例的突出显示颜色,以防这是你的意思寻找:

General->Editors->Text Editors->Annotations->C/C++ Occurrences 常规 - >编辑 - >文本编辑器 - >注释 - > C / C ++出现次数

Why oh why this is not in the C++ preferences pane I will never know. 为什么这不是我不会知道的C ++首选项窗格中的原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM