Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to change the color of the variable locations when I highlight it?
How to change the color of the variable locations when I highlight it? [message #217027] Wed, 20 June 2007 19:36 Go to next message
Eclipse UserFriend
Originally posted by: www.nospam.net

Hi,

I use a feature in Eclipse a lot. That is: when I point my cursor to a
variable, say "myNum", then in any places in the program, if myNum is
used, on the right side there will be a faint white color to indicate
myNum is used here.

That faint white color sometimes is hard to recognize. I am wondering if
I can configure my Eclipse so that some stronger color is used.

Thank you.
Re: How to change the color of the variable locations when I highlight it? [message #217069 is a reply to message #217027] Wed, 20 June 2007 21:50 Go to previous messageGo to next message
Mark Dexter is currently offline Mark DexterFriend
Messages: 324
Registered: July 2009
Senior Member
www wrote:
> Hi,
>
> I use a feature in Eclipse a lot. That is: when I point my cursor to a
> variable, say "myNum", then in any places in the program, if myNum is
> used, on the right side there will be a faint white color to indicate
> myNum is used here.
>
> That faint white color sometimes is hard to recognize. I am wondering if
> I can configure my Eclipse so that some stronger color is used.
>
> Thank you.
Hi. Try Window / Preferences / General / Editors / Text Editors /
Annotations. This one preference appears to change both the text
highlighting and the little guy on the right (which I never noticed
before). Hope this helps. Mark Dexter
Re: How to change the color of the variable locations when I highlight it? [message #217173 is a reply to message #217069] Thu, 21 June 2007 14:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: www.nospam.net

Mark Dexter wrote:

> Hi. Try Window / Preferences / General / Editors / Text Editors /
> Annotations. This one preference appears to change both the text
> highlighting and the little guy on the right (which I never noticed
> before). Hope this helps. Mark Dexter

Thank you. It worked. That is great.
Re: How to change the color of the variable locations when I highlight it? [message #217242 is a reply to message #217069] Thu, 21 June 2007 17:12 Go to previous messageGo to next message
Carl Manaster is currently offline Carl ManasterFriend
Messages: 23
Registered: July 2009
Junior Member
Hi, Mark,

> Hi. Try Window / Preferences / General / Editors / Text Editors /
> Annotations. This one preference appears to change both the text
> highlighting and the little guy on the right (which I never noticed
> before). Hope this helps. Mark Dexter

One reason you've never noticed it before is the low contrast between the
gray annotation bar and the annotations. It's very hard to find a color
that shows up well on the annotation bar without also screaming in the
text area (where the colored region is both much bigger and contrasts
against a white background). I think Eclipse should:

o allow me to change the background color of the annotation bar;
o use a supersaturated version of the text hilite color in the annotation
bar.

One or the other would make this great feature even better.

Peace,
--Carl
Re: How to change the color of the variable locations when I highlight it? [message #217405 is a reply to message #217242] Fri, 22 June 2007 13:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse5.rizzoweb.com

Carl Manaster wrote:
> Hi, Mark,
>
>> Hi. Try Window / Preferences / General / Editors / Text Editors /
>> Annotations. This one preference appears to change both the text
>> highlighting and the little guy on the right (which I never noticed
>> before). Hope this helps. Mark Dexter
>
> One reason you've never noticed it before is the low contrast between
> the gray annotation bar and the annotations. It's very hard to find a
> color that shows up well on the annotation bar without also screaming in
> the text area (where the colored region is both much bigger and
> contrasts against a white background). I think Eclipse should:
>
> o allow me to change the background color of the annotation bar;
> o use a supersaturated version of the text hilite color in the
> annotation bar.
>
> One or the other would make this great feature even better.

Feel free to enter an enhancement request in Bugzilla - the newsgroups
are not the right forum for officially submitting such requests.
In the meantime, what I do is use real "highlight" colors for
annotations, like yellow, bright green, bright orange, etc. I have no
problem seeing either the annotations in the bar nor the highlighted text.

Hope this helps,
Eric
Re: How to change the color of the variable locations when I highlight it? [message #217413 is a reply to message #217405] Fri, 22 June 2007 15:36 Go to previous message
Carl Manaster is currently offline Carl ManasterFriend
Messages: 23
Registered: July 2009
Junior Member
Hi, Eric,

> Feel free to enter an enhancement request in Bugzilla - the newsgroups
> are not the right forum for officially submitting such requests.
> In the meantime, what I do is use real "highlight" colors for
> annotations, like yellow, bright green, bright orange, etc. I have no
> problem seeing either the annotations in the bar nor the highlighted text.

Thanks; I think there are enough such requests already in the system:

<a href = "https://bugs.eclipse.org/bugs/show_bug.cgi?id=69690">69690</a>
<a href = "https://bugs.eclipse.org/bugs/show_bug.cgi?id=69053">69053</a>
<a href = "https://bugs.eclipse.org/bugs/show_bug.cgi?id=50874">50874</a>
<a href = "https://bugs.eclipse.org/bugs/show_bug.cgi?id=90194">90194</a>

(since there's no preview in the NewsPortal window, nor instructions
regarding links, I'll repeat just the bug numbers here; above I tried to
include links to the bugs: 69690, 69053, 50874, 90194)

Bright colors are a reasonable workaround, but I prefer - and assert
without proof that it is more productive / less stressful - a subdued,
pastel highlight for the text. Those colors are simply invisible in the
bar.

Peace,
--Carl
Previous Topic:Goober question: no updates work because of dependency failures
Next Topic:Eclipse Char Encoding
Goto Forum:
  


Current Time: Thu Apr 25 21:46:51 GMT 2024

Powered by FUDForum. Page generated in 0.07988 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top