Mert ÇELEN
Mert ÇELEN

Reputation: 493

Eclipse dark theme highlight issue

I just switched from geany to eclipse and I have a little problem

How can I change that highlight color which is VERY annoying

enter image description here

As you can see, whenever I highlight anything and click somewhere else, it changes like this. How can fix this little bug?

Upvotes: 37

Views: 28920

Answers (13)

Landry Gagne
Landry Gagne

Reputation: 1

Annotations is the setting you want to Change (whatever Eclipse you are using - example below is CDT): annotations / Occurences in Eclipse preferences

Upvotes: -1

Also check "Vwrapper Search" color setting if you are using that plugin

Under Open Window > Preferences > General > Editors > Text Editors > Annotations

For some reason it overrides other defaults. Tested with the Darkest Dark theme on Eclipse 2022-09.

Upvotes: 0

mouelle
mouelle

Reputation: 21

I had the same issue with highlighted inactive code.

I was able to change it in Window>Preferences>C/C++(or other programming language)>Editor under "Appearance color options:" select "Inactive code highlight" and change to the desired color.

Similar post about inactive code in Eclipse.

Upvotes: 0

Joshua Swain
Joshua Swain

Reputation: 690

Using the answers above to set the colours, here are some that I found worked in RGB:
(65, 66, 36) enter image description here

(83, 55, 55) enter image description here

Upvotes: 1

burhan
burhan

Reputation: 1

In my case, Spring Tool Suite 4.14.0 (202203), changing "LSP Read Occurrence" color under Windows -> Editors -> Text Editors -> Annotations solved my problem.

https://i.sstatic.net/v74Of.png

Upvotes: 0

wiseboar
wiseboar

Reputation: 335

If you're using PyDev, use the following:

Open Window>Preferences>General>Editors>Text Editors>Annotations

in the list of Annotation types there is the "Occurrences (PyDev)" Option, which is the one you'll want to change.

location in menu I found a blue highlight for dark mode works well in PyDev.

Upvotes: 2

bkepley
bkepley

Reputation: 81

I found the best thing to do is to go into GWindows -> Preferences -> General -> Editors -> Text Editors -> Annotations and change everything from Highlighted to Underlined and choose the underline color to suit.

Upvotes: 6

simbro
simbro

Reputation: 3692

For me, this is what did it (seems it's different for everyone):

Open Windows -> Preferences -> General -> Editors -> Text Editors -> Annotations

Under "Annotation Types":

select "Boot Dynamic Info", then uncheck the "Text as" checkbox on the right.

Upvotes: 1

John Czukkermann
John Czukkermann

Reputation: 625

I had to spend an inordinate amount of time searching for an answer to this question. Here is a picture of the Preferences 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: 3

Joannot
Joannot

Reputation: 29

General->Editors->Text Editors->Annotations preference section. Look for C/C++ Occurrences and C/C++ Write Occurrences.

Upvotes: 2

Here's what worked for me:

  1. Open Windows -> Preferences -> General -> Editors -> Text Editors -> Annotations
  2. Select "Occurrences (PyDev)." The "Text as" drop down box on the right should read "Highlighted," and the color is very light.
  3. Click the color button and change it to something easier on the eyes.

Upvotes: 8

maddRobot
maddRobot

Reputation: 414

Open Window>Preferences>General>Editors>Text Editors>Annotations

Modify the color for "PHP elements 'read' occurrences" and "PHP elements 'write' occurrences". Obviously I'm using eclipse PHP but you should see similar options in the annotations list for non-PHP eclipse.

Upvotes: 26

H S Rathore
H S Rathore

Reputation: 2124

If you are using Python in eclipse (using PyDev) than the above solution won't help. Than you have to go to
"Open Windows>Preferences>General>Editors>Text Editors> Annotations"

and change the color of Breakpoints(PyDev).
Once you do that the color of all which are matching your current selection will be in the color you chose and not the annoying yellowish highlight color.

Upvotes: 4

Related Questions