Highlight Usages

Is this a bug? If I have:

String s;
StringBuffer sb;

Then select the first 'String' and press CtrlAltF7 (Highlight Usages), then the 'String' in 'StringBuffer' is also highlighted.

I hope this is a bug and not a feature, because it's useless if it's the latter. Highlight Usages gives a good overview of how a symbol participates in the logic of a class -- this 'highlight substring in file' behaviour loses this.

I can see how the behaviour as it stands might be useful, but 'Highlight Usages' was one of my favourite IDEA features. Is it gone for good? :(

3 comments

To highlight usages of a symbol, put the cursor in the symbol, rather than selecting anything.

If there's a selection when ctrl-alt-f7 is pressed, it does a string-based highlight.

0

BTW,
It must be diferent key shortcuts?

"Russell Egan" <russegan@email.com> wrote in message
news:16852626.1071598634969.JavaMail.javamailuser@localhost...

To highlight usages of a symbol, put the cursor in the symbol, rather than

selecting anything.
>

If there's a selection when ctrl-alt-f7 is pressed, it does a string-based

highlight.


0

Oops, ahem, you're right. OK, perhaps that is quite cool. :)

0

Please sign in to leave a comment.