开发者

Shortcut to navigate between highlighted usages

According to this page navigating between highlighted usages:

Shortcut to navigate between highlighted usages

(source: jetbrains.com)

can be done using F3 or Ctrl+L and Shift+F3 or开发者_高级运维 Ctrl+Shift+L keyboard shortcuts, to navigate to the next and previous usages respectively.

However these shortcuts are by default used to navigate between search occurences (Ctrl+F), not highlighted usages, and indeed this is how they work. Is there any other way to navigate between highlighted usages using keyboard?


Install the Identifier Highlighter plugin.

It's a must have plugin for IntelliJ, and is always the very first thing I do to a fresh IDEA installation. I can't understand why this hasn't become part of core IntelliJ yet.


I've found on mac that Ctrl + G works for this purpose well. It actually selects the occurrence for you, which is fine for me. Shift + Ctrl + G for the previous occurrence.

On Windows/Linus this should be Alt + J and Shift + Alt + J respectively.


F3 and Shift+F3 work just fine here. Highlighted usages do not differ from search occurrences in this context.


For linux key mapping setup in IDEA go to next occurrence are Ctrl+L. Alt+J is for selection for next occurrence.


Ctrl+Alt+Up and Ctrl+Alt+Down navigates to the next and previous usages of a highlighted variable in IntelliJ.

I use this functionality of navigating to the next usage of a variable in a file by hot in Visual Studio all the time (Ctrl+Shift+Up and Ctrl+Shift+Down) and was looking for the equivalent in IntelliJ

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜