In Eclipse the keyboard shortcut to find next occurrence of a word in a file was Ctrl + k
. It finds the occurrence of the selected word in a file one by one in a loop. What is the equivalent keyboard shortcut for IntelliJ IDEA? If not can we configure it some how?
Successively press Alt+J to find and select the next occurrence of case-sensitively matching word or text range.
In Eclipse, you press CTRL + SHIFT + O “Organize Imports” to import packages automatically. For IntelliJ IDEA, if you press CTRL + ALT + O “Optimize Imports”, it just removes some unused imports, never imports any package.
In eclipse its nicer: once you hit ctrl-K it caches the text, so even if you switch to another file when you hit ctrl-K again, it finds the occurrence there (and it wraps). Not that your answer is wrong, just would be nice if intellij would have the same behaviour.
First you'll have to highlight a symbol by pressing Ctrl+Shift+F7.
Then you just press F3 or Shift+F3 no navigate between the highlighted symbols.
When done you press Esc to exit the highlight searching.
It is all described on Highlightning Usages in IntelliJ Web Help.
Add selection for the next occurrence on Linux Alt+J
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With