IttayD
IttayD

Reputation: 29113

How to change the color of current line & text selection in eclipse (for Java)?

I've tried looking in Java->Editor, General->Appearance->Colors And Fonts, General->Editors->Text Editors->Annotations, but couldn't find it

Upvotes: 59

Views: 48596

Answers (7)

John Czukkermann
John Czukkermann

Reputation: 615

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.

enter image description here

Upvotes: 2

Gianluca Mereu
Gianluca Mereu

Reputation: 326

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

Upvotes: 0

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

Upvotes: 0

uma mahesh
uma mahesh

Reputation: 132

Eclipse Neon: Preferences > General > Editors > Text Editors - Appearance Color Options / Selection Background Color

Upvotes: 4

anand krish
anand krish

Reputation: 4415

Here you go : In Eclipse: go to Windows -> preference-> General -> Editors -> Text Editors -> Annotations -> Occurrences

Upvotes: 17

nayakam
nayakam

Reputation: 4239

In Eclipse Helios : General->Editors->Text Editors : Appearance color options. I always use type filter box in preference widows to check settings.

Upvotes: 5

Kambo_Rambo
Kambo_Rambo

Reputation: 1715

The one you are after are probably in General -> Editors -> Text Editors ===> Then Appearance Color options -> Current line highlight & Selection background

Upvotes: 128

Related Questions