intellij-idea

IntelliJ navigate to next and previous highlighted variable


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'm looking for the equivalent of Control-K in Eclipse.

Edit: Shortcut to navigate between highlighted usages simply moves to the next text occurrence, which is different than moving to the next occurrence of the variable/method/etc. If I have the variable foo selected, I want to navigate to the next occurrence of foo and not any piece of text called "foo" (including "foo" in comments, method names, etc).

Also, pressing F3 seems to be buggy. When I press F3, it sometimes searches using the previous searched text and not the currently highlighted text.


Solution

  • It's not currently possible, see my question: Shortcut to navigate between highlighted usages.

    I even created an issue IDEA-70523 addressing this feature, please vote for it if you can't live without it like me :-).