Skip to Content

Close brackets and braces easily with AutoPairs

If you're the type that spends the day staring at a display and typing code, we'd bet you'd appreciate any utility that will make the process easier. Check out AutoPairs. It's a Mac OS X preference pane that closes your brackets, braces and quotes for you. Type a left bracket, for instance, and a right bracket and left arrow appear. Pretty spiffy, especially when you consider that BBEdit doesn't do this out of the box.

Note that, since AutoPairs is a preference pane plug-in, it won't work under Rosetta, though the developer promises that a universal version is in the works. AutoPairs requires Panther or better and is free.

[Via ...on a long piece of string]

Categories

Software

If you're the type that spends the day staring at a display and typing code, we'd bet you'd appreciate any utility that will make...
 

Add a Comment

*0 / 3000 Character Maximum

9 Comments

Filter by:
Ken69267

Have got to recommend TextMate

March 15 2006 at 9:27 PM Report abuse rate up rate down Reply
Mark Imbriaco

FYI, lakiolen, Emacs can indeed do the same kind of thing, depending on the major mode that you're in. The Ruby mode (with ruby-electric) is actually quite good.

That said, I agree with you about TextMate. Even after using Emacs for almost 15 years, I'm very happy with TextMate. It's a joy to use.

March 15 2006 at 6:32 PM Report abuse rate up rate down Reply
Dennis

Even better yet, use Peter Maurer's Textpander, which is already a Universal Binary. It installs as a Preference Pane and can do a lot more than just balance brackets. Enter any pre-configured text string to trigger a different string. I have it set up to balance all manner of parentheses, brackets, braces, HTML tags, as well as print formatted date and time strings, snippets of code, and anything else I used to type over and over. It's truly indispensable once you get hooked. Oh, and it's donation-ware, so pay what you think it's worth.

http://www.petermaurer.de/nasi.php?section=textpander

March 15 2006 at 6:14 PM Report abuse rate up rate down Reply
Daniel David

Oops my post got eaten by the database, here it is:

Dreamweaver will auto-close your current HTML tag once you type </.

As for closing parens and braces, I don't need an auto close feature. I've been programming long enough to close them without thinking. I very rarely have something blow up because of a missing paren or brace. It's usually something much worse.

March 15 2006 at 6:13 PM Report abuse rate up rate down Reply
Daniel David

Dreamweaver 8 will auto-close your current HTML tag once you type '

March 15 2006 at 6:08 PM Report abuse rate up rate down Reply
Sam

This is cool... but it would be awesome if it could close one's html tags too. Something like that must exist. Does anyone have any ideas?

March 15 2006 at 6:04 PM Report abuse rate up rate down Reply
lakiolen

I've gotten so used to TextMate autoclosing parens, braces, brackets and quotes that it irks me that emacs(vi, whathaveyou) doesn't.

March 15 2006 at 5:31 PM Report abuse rate up rate down Reply
B Crandall

This is perfect! I can't wait to use it.

March 15 2006 at 5:15 PM Report abuse rate up rate down Reply
Karan Lyons

Or you could, you know, use Textmate.

March 15 2006 at 5:14 PM Report abuse rate up rate down Reply
Buy an ad here

Hot Apps on TUAW

Tweets

© 2012 AOL Inc. All Rights Reserved.