The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Minimize parentheses in Textmate

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Jamie Hill

Posts: 161
Nickname: jamie007
Registered: Nov, 2006

Jamie Hill is Managing Director of SonicIQ Limited in the UK specialising in XHTML, CSS and Rails.
Minimize parentheses in Textmate Posted: Nov 7, 2007 2:55 PM
Reply to this message Reply

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.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Jamie Hill
Latest Posts From The Lucid

Advertisement

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.

Read: Minimize parentheses in Textmate

Topic: RubyConf 2007 Previous Topic   Next Topic Topic: Rails: String#classify

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use