In IntelliJ 10.5 I have \"Highlight usages of element at caret\" enabled. When a variable/method/etc is selected, is there a way to move to the next and previous occurrence?
I usually do the following:
Vote this request up for make them implement the feature.
http://youtrack.jetbrains.com/issue/IDEA-59638
I found something thay may more suite your needs : alt + mouse-wheel up/down.
It goes to previous / next occurrence of identifier under caret.
Shortcut name is "Go to next highlighted element usage".
Look for next occurrence @ Keymap
^G
= "select" the variable that you want to search for
[shift]⌘G
= [previous]next occurrence of selected variable
All credits to @Igor Wojda for his comment in the accepted answer.
Install Identifier Highlighter Reloaded and use Alt + Shift + Up/Down (can be redefined in Keymap settings) :)
After you give it a shot and notice the 'hey, the highlight stays there after I move my cursor out of it' annoyance, consider upvoting this issue :)
In the Mac OS, you can navigate to next highlighted usage by press control
+ option
+ up/down arrow
.