How to change the color of current line & text selection in eclipse (for Java)?
EclipseEclipse Problem Overview
I've tried looking in Java->Editor, General->Appearance->Colors And Fonts, General->Editors->Text Editors->Annotations, but couldn't find it
Eclipse Solutions
Solution 1 - Eclipse
The one you are after are probably in General -> Editors -> Text Editors ===> Then Appearance Color options -> Current line highlight & Selection background
Solution 2 - Eclipse
Here you go : In Eclipse: go to Windows -> preference-> General -> Editors -> Text Editors -> Annotations -> Occurrences
Solution 3 - Eclipse
In Eclipse Helios : General->Editors->Text Editors : Appearance color options. I always use type filter box in preference widows to check settings.
Solution 4 - Eclipse
Eclipse Neon: Preferences > General > Editors > Text Editors
- Appearance Color Options / Selection Background Color
Solution 5 - Eclipse
To change the color of current selected line background, follow these steps Eclipse-- In Eclipse: go to Windows -> preference-> General -> Editors -> Text Editors ->Appearance color options ->Selection Background Color
&&
To change the color of current selected lines(TEXT), follow these steps Eclipse-- In Eclipse: go to Windows -> preference-> General -> Editors -> Text Editors ->Appearance color options ->Selection foreground Color
&&
To change background color of eclipse In Eclipse: go to Windows -> preference-> General -> Editors -> Text Editors ->Appearance color options ->Background Color
Solution 6 - Eclipse
Instead of changing every color individually I solved launching eclipse with the parameter "--launcher.GTK_version 2" This solved the tooltips, the selected text and the selected items problems at once!
It has been suggested here: https://stackoverflow.com/a/41482138/6465697
Solution 7 - Eclipse
I had to spend an inordinate amount of time searching for an answer to this question. Here is a picture of the Preferences from the 2019-03 JavaEE bundle showing which selection is for changing the background color of text you have selected with your mouse in the editor. This is totally different from the Occurrences that people keep pointing out.