title: SublimeText: How to toggle curly braces to do-end blocks in Ruby
body: <p>I'm using snippet quite frequently to write my code in SublimeText2. But there is one thing I can not achieve: toggling a block of curly braces to a block of do ... end.</p>
  
  <p>Let's say i'm trying to build a multiline each-block. So I type:</p>
  
  <pre><code>[1,2,3].ea&lt;TAB&gt;
  </code></pre>
  
  <p>Which will result in:</p>
  
  <pre><code>[1,2,3].each { |e|  }
  </code></pre>
  
  <p>Now I need some magic to toggle it to:</p>
  
  <pre><code>[1,2,3].each do |e| 
    # cursor
  end
  </code></pre>
  
  <p>I'm pretty sure there was a way to achieve this in TextMate, so there will be way in SublimeText, too. Any ideas?</p>
  
  <p><strong>Update</strong>:</p>
  
  <p>I found the feature description in Textmate: (<a href="http://szeryf.wordpress.com/2010/02/15/textmate-shortcuts-you-should-be-using/" rel="nofollow">TextMate shortcuts you should be using</a> -> Toggle ‘do … end’ / ‘{ … }’) ... that's exactly what I want.</p>