To do this you'll need to create your own snippet:
Open the Bundle Editor
and select Ruby
from the list. Press Command
+ n
to create a new item, select Snippet
from the drop down.
Name your new Snippet
something appropriate, "Spaced Curly Braces" perhaps. The snippet editor should contain only:
{ $0 }
Click, in the Bundle Editor
drawer, on Key Equivalent
to bind the snippet to a key, in this case use {
This will cause this snippet to exist everywhere in TextMate, to limit it to only working in Ruby change the Scope Selector
to source.ruby
, or for the Ruby on Rails people: text.html.erb.rails, source.ruby.rails, source.ruby.rails.embedded.html, meta.rails.helper, meta.rails.unit_test, meta.rails.controller, meta.rails.functional_test, text.haml, source.ruby.rspec