title: IDEA: "Assign statement to new local variable"?
body: <p>As a long time Eclipse user, I'm playing around a little bit with IntelliJ IDEA 10. I can't seem to find out how to perform an "Assign statement to new local variable" code completion.</p>
  
  <p><strong>Feature explanation:</strong></p>
  
  <p>I type something like</p>
  
  <pre><code>new BufferedOutputStream(out)
  </code></pre>
  
  <p>and then hit <kbd>Cmd (or Ctrl)</kbd>+<kbd>1</kbd> and enter, and Eclipse changes the line into:</p>
  
  <pre><code>BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(out);
  </code></pre>
  
  <p>At the same time, I can type over "bufferedOutputStream" immediately to rename it (or select from the options "bufferedOutputStream", "outputStream" and "stream" from a dropdown).</p>
  
  <p>I use this feature for absolutely every assignment, and it's an enormous time saver - this must be available in IDEA, too - but where is it hidden?</p>