Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse text highlights

In eclipse when I'm pressing 'ctrl' (no matter what next) part of my code turns red with a yellow background. What is this and how to disable it?

Also when this happens 'ctrl' + 'space' stop working until I restart eclipse.

here what it looks like this:

enter image description here

EDIT:

How to reproduce: start the auto completion (ctrl + space) on something you already wrote:

class.fun

step after the . and start the auto complition

now each time I hold ctrl, fun glows yellow:

class.fun

like image 943
Vladp Avatar asked Sep 23 '12 10:09

Vladp


People also ask

How do you highlight words in eclipse?

Glance does not work anymore, but in current Eclipse Versions (Eclipse 2020) you can highlight any word by selecting the word and pressing CTRL+F. The word is now highlighted.

How do I change the highlight in eclipse?

Under Preferences->General->Colors and Fonts, select "Match background highlight" and edit/reset the colour.

Why is Eclipse highlighting my code?

This is activated because of code coverage. If you want to remove it then follow these steps. Go to "Windows -> Show View -> Coverage" Select it. Click on "Open".


1 Answers

Might be on demand hyperlink navigation acting up.

Do you also see the text become underlined as you hover over it?

Try this:

Window->Preferences->General->Editors->Text Editors->Hyperlinking
[v] Enable on demand hyperlink style navigation
Default modifier key: [Ctrl]

Turn it off and Apply the change.

See if it makes a difference.

If it is not that, perhaps you find the culprit elsewhere in your preferences.

like image 198
stackunderflow Avatar answered Oct 07 '22 00:10

stackunderflow