type/variable highlighter

hi,

i am evaluating a switch from eclipse to intellij and so far i think this change is worth it (keyboard focused, simplified workspace, stability etc.). the only thing i am missing following feature from eclipse: if caret is over a variable or type the other occurrences inside source file are highlighted (grey color) instantly. inside intellij i need to explicitly call something like 'show occurrences' to see other usages of type or variable.

maybe i missed a setting option or something? if so could somebody tell how to switch this on (though i think that this should be the default)...

thanks.

7 comments
Comment actions Permalink

Hello manuel,

i am evaluating a switch from eclipse to intellij and so far i think
this change is worth it (keyboard focused, simplified workspace,
stability etc.). the only thing i am missing following feature from
eclipse: if caret is over a variable or type the other occurrences
inside source file are highlighted (grey color) instantly. inside
intellij i need to explicitly call something like 'show occurrences'
to see other usages of type or variable.

maybe i missed a setting option or something? if so could somebody
tell how to switch this on (though i think that this should be the
default)...


The IdentifierHighlighter plugin does this. You can install it though the
plugin manager (Settings | Plugins).

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


0
Comment actions Permalink

Let's put it this way: There has been much discussion about this feature - everybody had a strong opinion on it.

Finally somebody implemented that feature as a plugin:
See Settings -> IDE Settings -> Plugins -> Available -> IdentifierHighlighter -> Right Click -> Install.

After installation and restart of Idea you can configure it in the settings.

0
Comment actions Permalink

thanks for the hint.

i think it nice if this feature would already be built in. just don't want to end up similar to eclipse where i need to search and install plugins all the time...

why is this feature discussed controversial? i think it would be fine if it was included already and switched off by default.

0
Comment actions Permalink

Hello manuel,

why is this feature discussed controversial?


Because we, and a lot of our users, find this highlighting very annoying.

i think it would be fine
if it was included already and switched off by default.


Then the effort spent on developing this feature would be wasted to a large
degree because most of the users who like this feature won't know that it's
possible to enable this, or won't find the setting for enabling it.

In this case it's not much more difficult to install the plugin than to enable
the feature if it would be included but off by default.

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


0
Comment actions Permalink

alright, so i will go for the plugin.

never the less i would be interested what other alternatives you are using for analyzing code (maybe intellij goes a better way as eclipse quick highlight).

i find this highlight feature convenient when going through long method blocks. i know it is a bad smell if i cannot see quickly where variables are used, but never the less i often have to read/refactor code bits where long blocks are just the case. with highlight i can instantly see (without shortcuts) where variables get changed/read and this helps a lot to comprehend code.

0
Comment actions Permalink

manuel aldana wrote:

alright, so i will go for the plugin.

never the less i would be interested what other alternatives you are
using for analyzing code (maybe intellij goes a better way as eclipse
quick highlight).

i find this highlight feature convenient when going through long
method blocks. i know it is a bad smell if i cannot see quickly where
variables are used, but never the less i often have to read/refactor
code bits where long blocks are just the case. with highlight i can
instantly see (without shortcuts) where variables get changed/read
and this helps a lot to comprehend code.

You can always use the 'Highlight Usages In File' (CtrlShiftF7 in
default keymap) when your cursor is on an item to see where it is
used... these highlights will persist until you clear them with Escape,
and you can skip through them with the F3 key. It distinguishes read
and write usages with different colours.

N.

0
Comment actions Permalink

You also can select multiple items and unselect previously selected ones.

0

Please sign in to leave a comment.