title: IntelliJ Organize Imports
body: <p>Does IntelliJ have an Organize Imports feature similar to that in Eclipse?
  What I have is a Java file with multiple classes missing their imports. Example:</p>
  
  <pre><code>package com.test;
  public class Foo {
      public Map map;
      public JTable table;
  }
  </code></pre>
  
  <p>In Eclipse I could use Organize Imports and it would automatically import both <code>java.util.Map</code> and <code>javax.swing.JTable</code>. In IntelliJ I have to individually go to each class, select it, then press Alt-Enter. There is an Optimize Imports feature but all it seems to do is sort and expand the <strong>existing</strong> imports.</p>
  
  <p>I'm using IntelliJ 10.5.</p>