title: How can you reformat text in TextMate
body: <p>Is there a command in TextMate to re-indent or format text in a file?</p>
  
  <p>I use this all the time in IDE's after pasting in a block of code, removing a block, etc for re-indenting a file.</p>
  
  <p>Bonus points if there is a way to pretty indent, turning this:</p>
  
  <pre><code>has_many :users, :class_name =&gt; 'Users', :dependent =&gt; :destroy
  has_many :comments, :class_name =&gt; 'Comments', :dependent =&gt; :destroy
  </code></pre>
  
  <p>into this:</p>
  
  <pre><code>has_many :users,    :class_name =&gt; 'Users',    :dependent =&gt; :destroy
  has_many :comments, :class_name =&gt; 'Comments', :dependent =&gt; :destroy
  </code></pre>
  
  <p>But even just simple reformatting would be awesome.</p>
  
  <p>Not sure if it matters but I'm mostly talking about Ruby-on-Rails apps here.</p>