CTRL SHIFT F7 is nice - but how do you turn it off
I'm new to IDEA and so far so good. One feature of Eclipse that I miss is the ability to click on a variable, return statement or catch block and have the other references highlighted.
Now the CTRL-SHIFT-F7 is nearly what I want (and will do for now) - but for one major drawback - I cannot un-highlight. I've looked and looked and the only way I can unhighlight is to close the file and re-open it. That cannot be right!
Does anybody know the key sequence (or command) that'll unhighlight so that I can make use of this feature.
Many thanks,
Marcus.
请先登录再写评论。
Try ESC
Thank you - that works a treat.
Also be sure to pay attention to Idea's status bar. On other occasions useful info also appears there.
There is also a plugin that does automatic identifier highlighting: "Identifier
Highlighter".
You can install it through the plugin manager (Ctrl-Alt-S -> "Plugins").
It has a number of configuration options, so you might need to tweak it a
bit before it mimics the Eclipse behavior.
+1 for this plugin. It helps with discovering new code.
And one more really handy thing to do is add these mouse shortcuts:
altshiftbutton1 click - highlight usages
altshiftbutton2 click - escape
Then you can hold down alt+shift and click around with abandon to highlight multiple references and then middle-click to remove it all.
There's an added bonus with this mapping - if you're holding down alt+shift and you select any arbitrary bit of text, as soon as you release the mouse button, it will highlight all instances of that text.