Color - Changing Backcolor on Eclipse - eclipse

Im using Eclipse to code. There is some problem with it which can be seen on this picture.
Is there anyway to remove the backcolor or simply change it to white? Because it is hurting my eyes. Thanks!

To change the background color for occurrences:
Select Window > Preferences > General > Editors > Text Editors > Annotations
Select occurrences (org.eclipse...) from the list of Annotation types. There are two, but it doesn't matter which one you select since they both get updated.
Click the rectangle containing the current color and pick another color (or customize your own) in the Color dialog.
Click the Apply and close button.
Done! If you want to see the new color for a file that is already open in the editor it seems that you have to reopen it.
UPDATE (3/30/18)
My original answer above is wrong. Based on feedback from the OP in the comments below I have updated and corrected this answer to show how to change the background color for Warnings rather than Occurrences:
To change the background color for Warnings:
Select Window > Preferences > General > Editors > Text Editors > Annotations
Select Warnings from the list of Annotation types.
Click the rectangle containing the current color and pick another color (or customize your own) in the Color dialog.
Click the Apply and close button.
The screen shot above was taken on Eclipse Oxygen.3 Release (4.7.3), and obviously your list of Annotation types may differ from those in the screen shot.

Related

PyDev colors - what is this color called and how do I change it?

I'm using Eclipse 20190917-1200 with PyDev for Eclipse 7.4.0.201910251334. Whenever I move my cursor into a key word it's highlighted as shown below. I can't find this color anywhere in the PyDev settings. One question is, what is that behavior called, but more importantly, how can I change that insane color!
Go to general > editors > text editors > annotations > Occurrences (PyDev) and change the colour or uncheck it.
Hope this works for you !!

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 (if possible) can I change the color option for the highlighted search results in eclipse (Moonrise theme)?

I've changed my Eclipse Kepler (SR2) theme to Moonrise 0.8.9
Now the color of the highlighted objects makes the results barely visible.
I haven't found any option to modify either the color of the text, or the color of the background
I've attached the Search view
To change the highlighted row search result go to:
Window > Preferences > General > Appearance > Colors and Fonts > Basic
and change the Match highlight background color.
Note: This will not change the color of the other search results that are in purple
C/C++ > Build > Makefile Editor > Matching brackets highlight

Change 'fixes' background color in 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

Change overview ruler color in Eclipse

How to change overview rule background color in Eclipse 3.4.0.I20080617-2000 (vertical bar on right of editing window with some annotations) ?
General > Editors > Text Editors > Annotations allows only to change colors of marks itself not background of whole bar.
It looks like my web searching skills are getting weaker since I cannot find it anywhere ...
I also faced the problem of not being able to see the colors in the annotations ruler, so I've made a small plugin which enables setting the background color for the ruler. You can D/L it
from here: https://github.com/chookapp/AnnotationsRulerBackground
(screenshots at: https://github.com/chookapp/AnnotationsRulerBackground)
I have the same problem as Michal - this seems to be non-customisable.
I have trouble seeing some of the annotation marks in the overview ruler due to Vista's lighter colouring. You can change the colour of the marks, but the bar itself doesn't change colour.
It looks like the only way to change it is to change the system colours for all windows.
you can only change the color for the occurrence marking inside the editor (General > Editors > Text Editors > Annotations). The color in the overview ruler is computed from that color.
Add the following lines at the end of e4_classic_win7.css
#org-eclipse-e4-ui-compatibility-editor Composite > Canvas {
background-color : #232323;
}
The file is located in
Eclipse Kepler : \plugins\org.eclipse.platform_4.3.2.v20140221-1700\css\
Eclipse Mars : \plugins\org.eclipse.ui.themes_1.1.1.v20151026-1355\css\
Be sure to select windows clasic theme in Preferences->General->Appearance
And restart eclipse.
Alternatively you can edit the other corresponding css files.
Note: You have to choose you own preferred RBG color instead of #232323
My solution has been to make the text light on a dark background across all text editors. (Window -> Preferences -> General -> Editors -> Text Editors -> Background color => BLACK, and then every 'Syntax Coloring' you need)
This way the annotation colours I choose can be quite highly saturated dark colours - the text is then still legible over the annotation highlight in the text editor, but the marker in the overview ruler is also highly visible (assuming a light window colour in your OS).
The downside of this is that you have to do a lot of customising to get there. (Its worth exporting your preferences for other workspaces if you plan to go down this route.) And its more of a workaround than an answer :-(
It seams to work for me.
The only thing to do is to "restart" Eclipse after your change.
The overview ruler and the editor will display the selected color
What if you are using eclipse 4, try this.
https://github.com/jeeeyul/eclipse-themes
You can actually just disable this bar by going to Preferences > General > Editors > Text Editors. Then just uncheck the box labeled "Show range indicator". The annotations will still appear, the bar will take the color of your theme. Solution found there.
i added below and works well in eclipse luna & neon. It works
#org-eclipse-e4-ui-compatibility-editor Canvas,
#org-eclipse-e4-ui-compatibility-editor Canvas > * > * {
background-color: #b5c7ce;
}
background-color: #e0d2d2;
}