Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

eclipse ctrl+k equivalent shortcut in IntelliJ

In Eclipse, if the cursor is over a word and you press Ctrl+K you will jump to the next occurrence of that word in the file.

Is there a similar shortcut in IntelliJ?

like image 217
Kummo Avatar asked Feb 13 '13 15:02

Kummo


People also ask

How do I get Eclipse shortcuts in IntelliJ?

Shortcut to use Eclipse shortcuts in IntelliJ Idea: Press ctrl+`(also have tilde~ on it, button at the left side of digit 1). Then press 3 (Keymap) and select 2 (Eclipse). Done!

How do I act like an Eclipse in IntelliJ?

If you want to mimic the Eclipse behavior, you can invoke the Build Project action Ctrl+F9 - it will save the changed files and compile them. You can also enable the Build project save action in Settings/Preferences | Tools | Actions on Save.


2 Answers

Find word at caret, default is Ctrl+F3, can be changed in File | Settings | Keymap:

Find word at caret

like image 157
CrazyCoder Avatar answered Oct 22 '22 13:10

CrazyCoder


You will need 2 Steps to archive a similar behavior:

Step 1:

Press Ctrl+F3 to start a search for the current selectet text (if no text is selected then the whole word will be taken).

Step 2:

Press F3 to jump to next occurrence or Shift+F3 to jump to the previous.

This approach will even continue the search for the text if you switch to another file. Just press F3 and you will jump to the next occurrence in the other file.

like image 31
cheneym Avatar answered Oct 22 '22 13:10

cheneym