Search code examples
intellij-ideakeyboard-shortcuts

How to go to next/previous occurrence in current editor tab?


In eclipse, you can go to the previous/next occurrence of the selected word by pressing ctrl+, / ctrl+..

What is the equivalent in IntelliJ IDEA?


Solution

  • The functions for this are called Go to {next,previous} highlighted element usage and are available by default only via the menu EditFind. No key press is associated to this function by default. (IntelliJ IDEA 2018.3 (Community Edition))

    You can set them to a specific key press in the keymap: FileSettingsKeymapMain menuEditFind and double click on the function you want to set.

    EDIT: IntelliJ IDEA 2021.3 (Community Edition): via main menu EditFind UsageNext(Previous) Highlighted Usage