Change 'fixes' background color in eclipse - eclipse

I've been trying to change the background color for the 'quick-fixes' pop-up (the pop up that lists ways to fix an error) in eclipse juno. Currently the color is black and the text is blue which makes it very hard to read.
I cant find the correct way to change the color. Please help. Its really annoying to squint and have to read blue text on a black background.

This was driving me nuts as well, here is the fix.
Go to preferences.
Search for "Annotations"
for each Annotation Type:
if "Text as" == "Highlighted" and Color == black:
Set the color to light or uncheck "Text As"
In this screen shot, I am fixing Occurrences.
The problem I show to the left is the "Matching Tags" annotation which had the same problem.

You can change the color of the text in the pop-up.
In windows you can go Control Panel, search for colors and metrics and then select Change window colors and metrics. In the item menu select Hyperlinks and change the Color.
EDIT: This fix is valid for Windows 7. Windows 10 does not have the option to change Hyperlinks color.

Right Click anywhere in the Editor Window, and at the bottom of the context menu select Preferences. This will bring you into Java -> Editor. At the bottom ofthat window select the element colors you wish to change, in your case Parameter hints background and Parameter hints background or Completion overview background and Completion overview foreground, depending on which one it is you are having a problem with.

From what I found, I do not think you can change the color. I am not willing to go to Eclipse source code and find it but here's what fixed it for me. Not perfectly but to a level I can use the quick fix. In my case, the background and foreground was same. (Luna, Dark Theme, Using Solarized Editor Theme).
Go into the Preferences (Window -> Preferences)
Choose General -> Appearance from the left menu
Uncheck the checkbox Use mixed fonts and colours for labels
The detail is in this post. How to change the highlight color in autocomplete box in Eclipse

Related

How to change the cursor color in SQL developer

I am using SQL Developer with a dark background theme ('classic'), which is really nice. However, the cursor is hard to see, since it has a color (grey?) that is very similar to the background color (blue).
Is there a way to change the color of the cursor?
Many thanks in advance!
In SQL Developer under
Preferences > Code Editor > Caret Behavior > Caret Color
There you can change the color of the cursor.
Source
https://www.thatjeffsmith.com/archive/2014/09/30-sql-developer-tips-in-30-days-day-3-syntax-highlighting/
Kindly check your item background colour and item foreground colour if they have the same settings.
To check this
Click on tools (on the menu bar)
Click Options
Click on Environment
Click on fonts and colours
Under display items, click on plain text
Under item foreground select default
Under item background select white
Click on Okay.

How to change search background color in eclipse

I've been searching for about 40 minutes now and this is just so frustrating...
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. 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.
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
Then scroll down to "Search Results" and set the highlighted text color.
This works for Eclipse Helios and Eclipse Juno. I haven't tested other versions.
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.
You can change the color of the search.
Otherwise, you can also change the colors of what Eclipse highlights by going to:
Eclipse -> Preferences -> General -> Appearance -> Colors and Fonts -> Match Highlight background color
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
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:
General -> Editors -> Text Editors -> Selection Background Color
Also in the search results window (that lists all the findings in a tree), the background color is under a different setting: 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)
In the Eclipse menu bar: Windows->Preferences->General->Editors->Text Editors->Annotations
Then scroll down to "Search Results" and set the highlighted text color.
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). To set the search highlight (or background) color I do the following:
Preferences->General->Editors->Text Editors see the Appearance color options section. Highlight the Selection background color and use the color palette to set your desired color.
It is somewhat frustrating as the only way I could get this to work is to restart Eclipse. After the restart I am happy.
Same as #bityz's answer, except for me the annotation which mattered was "Occurrences". I tried this on Eclipse 4.3 Kepler.
To highlight the matching keywords in Juno
Windows->Preferences->General->Text Editor-.Annotations-> in Annotation Types box, look for Write Occurrences. Change the color there.
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 (e.g. 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?
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!
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:
General->Editors->Text Editors->Annotations->C/C++ Occurrences
Why oh why this is not in the C++ preferences pane I will never know.

Eclipse in Ubuntu: hover background color property, where?

I changed the background color that is visible when hovering code (to black). For example when you hover over a method, you see its signature in a box; I mean the background color of that box.
I want to rechange it but I don't find the property anywhere. Do you know which property it is?
(It should be a global property, because other boxes use the same background color, even the heap status box).
It might be too late. But I think you need to change this from your OS.
System->Preference->Appearance->Customise->Colors->Tooltips
solved my problem.
I am using Ubuntu 10.04.
Preferences -> Java -> Editor -> "Source hover background"?
Edit: OK, do you mean the tooltip type popup window? The background color of the View to show Javadoc can be set in Preferences "General -> Appearance -> Colrs and Fonts -> Javadoc view background" but if you mean a tooltip type popup then you might have to set this in your OS.
In KDE 11.10, System Settings->Application Appearance->Colors(on left)->Colors(tab)->Color Set->Tooltop->Normal Background. Mine was set to black, resulting in black on black in Eclipse.
If you want to change the colour of the hover over for a method that indicates you can click through to its declaration:
Preferences > General > Editors > Text Editors
There is a list of options in 'Appearance Color Options' in the right panel. Select the 'Hyperlink' option and change its colour.
In ubuntu (software center) find and Install GNOME Color Chooser application and set Tool Tip Background color (yellow). Set foreground color to black if you find color viewing problem on other tooltips.
Just go to:
Preferences -> Appearance
and choose a Theme other than GTK
There is no setting for this within Eclipse that works for all cases. You will have to set this on an OS level as recommended by several other answers and it will vary depending on your OS and desktop environment.
However, on some versions of Ubuntu (specifically 14.04), none of the methods mentioned in the answers so far work correctly.
In that case, refer to this this answer on AskUbuntu, which lists the files that need to be edited in order to change the tooltip foreground/background colors to black and white OS wide for the built-in themes. In addition to those, I had to edit one more file (gtk-main.css).
The files that need to be edited are:
/usr/share/themes/Ambiance/gtk-3.0/settings.ini
/usr/share/themes/Ambiance/gtk-3.0/gtk.css
/usr/share/themes/Ambiance/gtk-3.0/gtk-main.css
/usr/share/themes/Ambiance/gtk-2.0/gtkrc
Set all instances of tooltip bg colors to #ffffff (white) and tooltip bg colors to #000000 or any other color combination you like. If you use the Radiance (light) theme instead of the default Ambiance theme edit the files in the corresponding Radiance folder.
For me, no proposed solution did work.
I ended up adding the following to eclipse.ini:
--launcher.GTK_version
2
Preferences -> General -> Appearance -> Colors and Fonts -> Java -> Colored labels (or anything in here)

How to change the color of the currently selected line in a code assist popup in Eclipse?

I've recently downloaded Eclipse 3.6, everything works fine, but there is one issue that really frustrates me. The highlight color of a currently selected item in a code assist popup is barely visible against white background. I've tried to mess with color settings, but it seems that there is no option for my needs. The line highlight color set in Windows color scheme is only used to highlight in a focused popup.
I believe it is hidden in another part of Preferences. I personally wanted to change the highlighted or currently selected line color, and could not find anything in Colors and Fonts. Ends up it was in...
General -> Editors -> Text Editors
And you just need to go through every option in the "Appearance color options" box there. One is "Current line highlight" and that fixed my problem. I hope it helps yours!
I know you're trying to change the highlight color, but if the problem is contrast you can change the content assist background color, and get this kind of contrast
The setting is General->Appearance->Color Basic->Content Assist Background
Then it's just a matter of finding colors that please you.
Try Preferences->General->Appearance->Color and Fonts then find the appropriate category.
Some editors will have support for "Colored labels - match highlight"
I was having the same issue and I've found a solution for windows XP. If you go to Control Panel -> Display -> Appearance -> Advanced and select 3D Objects under Item you can change the color of this highlight to a darker color.
However it does change the appearance of other parts of your windows.

How to change the way eclipse showing suggestion?

As you can see in the picture, I don't want the blue color suggestions. How do I change that?
Also I don't want that black color background.
You can use this guide to change the tooltip colours just for Eclipse, rather than changing them for the whole desktop environment.
Ach. Unfortunately that's pretty difficult. The background color of that pop-up is set by the operating system. It looks like you're running on Ubuntu with a darker theme. You have two choices:
Choose a different theme.
Live with the semi-illegible colors. If you click on the error marker on the left, it'll show up with a more tollerable black-on-white window.
Select "Change Desktop Background"
Select "Theme" from the tabs.
Click
"Customize"
Select "Colors" from the
tabs.
Change the "Background" of the
"Tooltips" as you like .
The change
will be visible at eclipse.
(On basis
of Ubuntu 10.10)
eclipse Preferences
-> General
-> Appereance
-> "Colors and Fonts"
-> Java
-> "Javadoc background"
go to sourcehover foreground and change the color
to windows
Click on Editor tab
you will see source hover background, parameter hint foreground change the color