Lobbying for automatic highlight in file

I am a die-hard Idea user as many of you probably know.
However currently I am using (mostly) Eclipse due to project constraints.
I did not argue to strongly against having to use Eclipse, because it couldn't hurt to get to deeper knowledge of Eclipse - well in fact it constantly hurts, but that's another story

To get on the topic: Eclipse by default highlights usages of the element that the caret is in (much like Idea's "Highlight Usages in File" does when invoked explicitly.)
When I heard about it I agreed to JetBrain's official opinion that this behaviour is disruptive and should not be implemented.
Now after having used Eclipse a while, I have really grown on that small feature up to the point that I am really missing it when I fire up Idea.
Consciously you learn to ignore the highlights pretty fast, but they seem to help to grasp context and get an overview quickly.

This has been requested as IDEA-4442: http://www.jetbrains.net/jira/browse/IDEA-4442

Any chance to have it reopened?
Should be very easy to implement. Of course there should be an option in the editor settings, which could be off by default.

11 comments

Hello Stephen,

SF> I am a die-hard Idea user as many of you probably know.
SF>
SF> However currently I am using (mostly) Eclipse due to project
SF> constraints.
SF>
SF> I did not argue to strongly against having to use Eclipse, because
SF> it couldn't hurt to get to deeper knowledge of Eclipse - well in
SF> fact it constantly hurts, but that's another story
SF>
SF> To get on the topic: Eclipse by default highlights usages of the
SF> element that the caret is in (much like Idea's "Highlight Usages in
SF> File" does when invoked explicitly.)
SF>
SF> When I heard about it I agreed to JetBrain's official opinion that
SF> this behaviour is disruptive and should not be implemented.

We got so much tired of requests for this feature that we finally decided
that it will be implemented in 6.5. :)

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

I'm not familiar with Eclipse but seems this feature exists in NetBeans 6 (see attachment)



Attachment(s):
hightlight.png
0

LOL

My suggestion for implementation would be to keep this separated from "Highlight Usages in File", so that it does not interfere with explicit searches.
Very often I use the highlight feature to mark some field/method usages and then navigate with f3 to each usage and do some editing there.
That would not be possible if the highlights are lost due to automatic highlighting while editing.
And of course default color should be non-distractive, i.e. light gray background as in newer eclipse versions (as opposed to bright yellow like in earlier versions).

0

+1, I really missed IDEA's Ctrl-Shift-F7 feature when I was forced to use
Eclipse. Please keep the existing behavior and just add the new one (instead
of replacing it).

Thanks,
Tom

0

Oh please god let this be toggleable....

--Dave Griffith

0

Hello Dave,

DG> Oh please god let this be toggleable....

But of course. :)

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

I agree with this.

It would be nice if the default automatic highlight color was different than
the Ctrl-Shift-F7 (blue/purple) colors as well.


0

Dmitry, you seem to have kind of an ego, if you answer to prayers :-D

Of course it should be toggleable.
But Dave, Marco, why not give it a try for a couple of days? I was as opposed to this feature as you, but it turned out I really liked it.

0

But Dave, Marco, why not give it a try for a couple
of days? I was as opposed to this feature as you, but
it turned out I really liked it.


Oh, I did. And the more time I spent using it, more I hated it.

0

Please sign in to leave a comment.