title: IntelliJ IDEA search for next occurrence of selected text
body: <p>In Eclipse I can highlight text in the editor such as &quot;foobar&quot; and then hit <code>Ctrl+K</code>, and Eclipse will automatically do a &quot;find next&quot; operation as if I had originally searched for &quot;foobar&quot;. I don't have to do a separate &quot;search&quot; operation for the selected text. How do I do this in IntelliJ?</p>
  <p>If I switch IntelliJ to Eclipse key mappings, indeed I can press <code>Ctrl+K</code> to invoke the &quot;find next&quot; operation. Unfortunately it ignores the selected text and instead searching again for the <em>last text I searched for</em>.</p>
  <p>In other words, with Eclipse mappings in IntelliJ I still have to perform the following steps to do a <code>Ctrl+K</code> search for &quot;foobar&quot;:</p>
  <ol>
  <li>Select the text &quot;foobar&quot; in the editor.</li>
  <li>Hit <code>Ctrl+F</code> for search; IntelliJ will pick up the selected text &quot;foobar&quot;.</li>
  <li>Hit <code>&lt;Enter&gt;</code> to search once for &quot;foobar&quot;.</li>
  <li>Hit <code>&lt;Esc&gt;</code> to exit search mode.</li>
  <li>Finally hit <code>Ctrl+K</code> to search for the next occurrence of &quot;foobar&quot;.</li>
  </ol>
  <p>In Eclipse I only have to do this:</p>
  <ol>
  <li>Select the text &quot;foobar&quot; in the editor.</li>
  <li>Hit <code>Ctrl+K</code> to search for the next occurrence of &quot;foobar&quot; (regardless of what I searched for previously).</li>
  </ol>
  <p>How can I get the same &quot;search for next occurrence of selected text&quot; functionality IntelliJ IDEA?</p>