Question

In IDEA, when I have some text selected (e.g., a symbol), is there a way to quickly jump to the next occurrence of my current selection in the current file? I can do Ctrl+F, F3 and Esc but isn't there a quicker way, without the need to go through the find panel?

Edit: to make it clear, I am looking for a way to do this without the Find panel being open.

(One thing I noticed: the area behind scrollbar automatically indicates where else the current selection appears in the current file. Maybe there is some command to go to the next occurrence as indicated by the gutter?)

Was it helpful?

Solution

Select desired text and press CTRL+F3 to search for current selection, and then F3 for next ocurrence (or keep pressing CTRL+F3)

OTHER TIPS

Try BrowseWordAtCaret, it is much better than CTRL+F3 which others suggested.

Description:

Allows to easily browse next/previous word at caret and highlight other appearances of selected word.

Usage: Browse with CTRL-ALT-UP, CTRL-ALT-DOWN (note: on default-keymap this shortcut is also for next/previous occurrence).

Once you have your search dialog open, use F3 to move to the next occurrence. Use Shift+F3 to move back an occurrence.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top