This post originated from an RSS feed registered with Ruby Buzz
by Jamie Hill.
Original Post: Minimize parentheses in Textmate
Feed Title: The Lucid
Feed URL: http://feeds.feedburner.com/thelucid
Feed Description: Lightweight ramblings and tips on Ruby and Rails.
Found a handy Textmate shell variable that can be used to remove parentheses when using snippets. I prefer this as I generally don’t use parentheses for assertions in tests and if I want them, I can add them myself.
It will for example, alter the asrt snippet from:
assert_respond_to(object, :method)
to:
assert_respond_to object, :method
Just click the ‘Advanced’ tab in preferences and then ‘Shell Variables’, add a variable named TM_MINIMIZE_PARENS with the value of ‘yes’ and you’re good to go.