Here are two handy tips for working in text editors, guaranteed to increase your productivity.
Lewis writes:
Holding alt whilst dragging in the mouse in a cocoa text editor will change the cursor to a crosshair and allow you to ‘block’ select text in a square. This is particularly useful when working with tabular data.
As Lewis notes, this is a handy tip when working with tabular data and also when removing the first a column of characters in a text block.
This works in most text applications, including TextEdit and Word. Unfortunately there are some other text editors that don’t seem to support this, like ecto and TextMate (Update: It looks like in TextMate you press ALT once. Thanks everyone!).
This is what selecting columns of text looks like:

Another useful way to work with text is by increasing or decreasing the indentation.
In many OS X text fields you can change this by pressing either:
- Command+] and Command+[ or
- Tab and Shift+Tab.
The tab version is fairly obvious but the Command+] is more subtle.
What are your tips for working with text fields?
Either reply in the comments or submit a tip and get some traffic to your site.
Florian Leitner
Patrick
And of course there are the standard shortcuts with:
+ Arrow keys,
+ ⇧ + Arrow keys,
⌥ + Arrow keys
which significantly speeds up working with text. June 6th, 2008 at 5:20 am
Richard
Erik Reagan
If you have line breaks within your document that is open in Textmate you can hold Option to column select. There are a few more tricks with this feature that can be found by experimenting with the keyboard. :) June 6th, 2008 at 5:26 am
Jacob Johnson
Otherwise this is a fantastic tip! I wish I'd known about this kind of stuff 2 years ago when I began working on OS X.
It should be a requirement to teach this in school! June 6th, 2008 at 7:02 am
Joseph McLaughlin
Hope this makes sense,
Joseph McLaughlin
http://blog.josephmclaughlin.info June 6th, 2008 at 12:35 pm
Dan Ashley
A phrase like "cocoa text editor" doesn't communicate to us.
How would this tip translate into plain English?
Thanks!
- Dan Ashley, Chicago June 6th, 2008 at 1:50 pm
Omer Zach
Steven
Brad Jasper
Partners in Grime
http://developer.apple.com/cocoa/ June 6th, 2008 at 7:06 pm
Christina
""Cocoa is basically Apple's Objective-C based programming environment for Mac OS X.
http://developer.apple.com/cocoa/""
Thanks for the start. . .but what does that mean. . .does that refer to software developed by apple for apple? or is it primarily for outside developers writing for apple users? In otherwords, would the tip work in all of my iXX programs or mostly in my 3rd party apps?
So glad to have these tips by the way - thanks! Anyone know how to drag & drop highlighted text on a mac? June 8th, 2008 at 6:15 am
Joseph McLaughlin
"Thanks for the start. . .but what does that mean. . .does that refer to software developed by apple for apple? or is it primarily for outside developers writing for apple users?"
Anyone can write applications in Cocoa, it's an open framework for macs.
Christina wrote:
"In otherwords, would the tip work in all of my iXX programs or mostly in my 3rd party apps?"
In my experience it depends on how new the app is. Apple completely rewrote several core pieces of the OS in Cocoa when they made Leopard. A way you can tell if an app is written in Cocoa or not is if you can scroll when that app isn't selected. i.e. Open Safari and open a finder window on top of that, move your mouse cursor over the open Safari window and attempt to scroll, it's a pretty cool feature.
Feel free to email me with questions,
Joseph McLaughlin
joseph@josephmclaughlin.info June 8th, 2008 at 12:05 pm
Erik Reagan
I'm a big fan of TextMate so I created a new site just for the app called TextMate Tips. Take a look over a textmatetips.com. You might learn something
Tip contributions are welcome! June 22nd, 2008 at 4:13 pm
khsing