Local usages highligting

Eclispse 3.1 comes with a very usefull feature (at least for me, although I do not like Eclipse too much in general). That is automatic highlighting of variable, parameter, field, method or class references in a file. I found that having to choose an option to enter the highlighting mode in IDEA is an unnecesary step. For users that do not want highlighting of usages, there could be an option to disable them. In Eclipse 3.1 this option is enabled by default, so I suppose more users find it usefull then iritating.

6 comments
Comment actions Permalink

Mileta Cekovic wrote:

In Eclipse 3.1 this option is enabled by default, so I
suppose more users find it usefull then iritating.


The Eclipse users I speak find that one of the most annoying features of
Eclipse 3.1, even it would work correctly which it seems it doesn't most
of the time. It did look like a good idea when I first saw it.

Bas

0
Comment actions Permalink

Have you tried Ctrl Shift F7 ?

0
Comment actions Permalink

Yes, but you have to type it. I meant that option to automaticaly highlight the occurrancies when caret is position on a variable, method, etc. would be usefull.

0
Comment actions Permalink

Mileta Cekovic wrote:

Yes, but you have to type it. I meant that option to automaticaly highlight the occurrancies when caret is position on a variable, method, etc. would be usefull.


While I haven't tried it, just imagining what it would look like makes
me think it would be rather distracting having different bits of text
all over the editor flash different colours as I move the cursor around.

Ciao,
Gordon

--
Gordon Tyler (Software Developer)
Quest Software <http://www.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: (416) 933-5046 | Fax: (416) 933-5001

0
Comment actions Permalink

>> While I haven't tried it, just imagining what it would look like makes
me think it would be rather distracting having different bits of text
all over the editor flash different colours as I move the cursor around.

If light, pastel colors are used, that would not be irritating. There is also plugin for JBuilder just for variables that I used, and it realy helps much for seeing where fields, parameters and local variables are used. Though, I had to change colors to light and pastel ones ;)

0
Comment actions Permalink

Are you aware of the settings found at

IDE | Colors & Fonts

Here you can set different font colors in the editor for

fields
method parameters
local variables
etc.

So each usage type can have its own color.

0

Please sign in to leave a comment.