Discover the Hidden Power of TextEdit

Discover the Hidden Power of TextEdit

Tutorial Details
  • Topics: TextEdit, Tricks
  • Difficulty: Beginner
  • Estimated Completion Time: 25 Minutes

There’s a lot of power under TextEdit’s hood, so let’s open her up and introduce you to some of the lesser-known features. If it’s actual word processing we’re after rather than document design, then what functionality do we actually expect? Text wrangling with fonts, styles, and justification? Check. Tables, charts, and images? Check. Spelling and grammar checking? You bet.


The Basics

Before we delve into the more powerful and obscure features, it might be worth breezing through some of the obvious but crucial functionality of TextEdit for those who dismissed it entirely as being able to do nothing but wrangle snippets of formatting-free text.

Text Formatting

Changing typefaces, fonts, and justification is a cinch — just open up the Format menu and go to town. Besides the core formatting options, you can also tweak kerning, define ligatures, change the baseline, insert special characters, and mess with colours. While most of these are accessible from the Format menu, you’ll need to check under Edit for the special characters.

Basic Features Showcase
Basic Features Showcase

Though perhaps little more than a gimmick for us English writers, there are several languages that will make good use of the text direction feature in the application. Navigating to Format -> Text -> Writing Direction will allow you to switch from our familiar left-to-right direction to right-to-left, which is necessary for proper transcription of certain languages.

And for those who are annoyed, as I am, by having your text spill off the borders of your window and go stretching off into oblivion, do yourselves a favour and hit Shift + Apple + W to wrap text to page.

Charts, Lists, and Links

Besides basic typographic fiddling, you can also make use of TextEdit’s ability to produce formatting that includes standard lists (numbered or otherwise, with nesting capabilities). Accessible via the Lists dropdown menu in the main toolbar, lists can be created and modified in a flash.

TextEdit
Tables

If you like, you can also access a Lists tool window from the Format -> Text menu area, which is also where you need to go to access tables. The Tables tool window is a straight-forward interface for defining your table parameters and adjusting how they integrate into your document.

One last thing from that Format -> Text menu: TextEdit supports hyperlinks, so if you highlight a word, or phrase, you can define an address by using the Link option and typing or pasting in the desired destination.


Under the Hood

Now it’s time to delve into the less obvious features of TextEdit and discover why it has the potential to become your main text editing tool.

Media Support

We’ll ease into the more obscure stuff by pointing out some other fairly basic functionality that just isn’t as evident when you first open the application. For starters, as you would expect from a fully-featured RTF editor, TextEdit allows you to insert various forms of media into your document. Copy/pasting will allow you to toss in everything from simple images to audio files and even video.

The latter appear in an integrated QuickTime player and are fully functional. Note that you won’t be able to adjust the size of the media from within TextEdit so you’ll have to tweak it to fit before dragging or pasting it into your document.

File Formats

Besides the usual suspects — .TXT, .RTF, and .HTML — TextEdit can also open and save as .OTD (Open Text Document) and even Microsoft Word’s .DOC and newer .DOCX formats! You won’t get the fancy print view that you do in something like Word, but you’ll have full access to the actual content so you can make a quick adjustment on the fly even when you don’t have the original application handy.

TextEdit
Save As…

The only things that TextEdit doesn’t reliably interpret are special features like tables of contents or footnotes — those will often show up bizarrely.

Proofreading Power

TextEdit
Dictionary

Because TextEdit is powered by OSX’s internal text editing engine, it has access to the full suite of proofreading tools. This means the usual spelling and grammar checking as well as the built-in dictionary and thesaurus that you can pull up by hitting Apple + Control + D with any word under your cursor (you don’t even have to highlight it).

And by the way, that dictionary trick works in most OSX applications too, not just TextEdit.

Auto-Complete Text

TextEdit
AutoComplete

Following up on the proofreading tools, you should also be aware that TextEdit can help you out when you’re typing by offering an auto-complete system not entirely unlike the one on your iPhone. To call up this well-hidden feature, simply start typing a word and hit Esc. Immediately, a dropdown list appears with all the words in OSX’s dictionary that begin with the letters you’ve typed.

You use the arrow keys to navigate up and down the list, and if there are too many options then you can freely type in more letters and just hit Esc again to refresh the list and narrow down your choices.

Pretty nifty, and definitely helpful when you’re in a hurry.

Styles

If you take a look at the top left of the application window, you’ll notice a Styles dropdown menu with a fairly unexciting collection of pre-defined styles. The list is extremely misleading because at a glance you’re likely to think it’s just a fast way to access text bolding and italics options. If that’s all you’re using it for though, then you’re ignoring a lot of power that is especially valuable for longer form documents.

Essentially, the Styles menu allows you to define not just text styles but full paragraph styles, just like in your major word processors. This means you can set up typography, spacing, alignment, and any other attributes you need and save it as a style that you can later call up and apply to any text. Spending some time setting up Styles for body text, headings, and callouts can save you a lot of wasted formatting time when you’re working on big documents.

Conversely, if you’ve grabbed some styled text from somewhere and want to quickly remove all formatting, simply hit Shift + Apple + T to clear all formatting and make plain text out of your selection.

Background Color

This is a quick but potentially useful feature that’s worth mentioning. Along with modifying text color, opening up the Font menu will let you change the colour of your document background too via the fourth button from the left in the top of the Font window. Incidentally, you can also add shadows to your text, which can really make things pop out nicely in combination with the right background colour.

TextEdit
Font Menu

Speech

Even without accessibility options enabled on your system, a quick visit to the Edit -> Speech menu will enable you to start OSX reading your document back to you. You never know when you need your document read out loud.

Word Count

Okay, so I’m cheating a bit with this one since it’s not technically built in, but if you’re missing a word-count feature before you can consider TextEdit a truly viable go-to word processor (I know I did), then you’re in luck. One enterprising coder has fashioned NanoCount, a simple utility that integrates into TextEdit and lets you track word or character counts as well as set a writing goal and define how often you want the count to update (in case it distracts you to have it in realtime).

Quick Open

If you keep TextEdit on your dock (which I hope you’re feeling more compelled to do by now), then you’ll find that it’s great for quickly grabbing snippets of text from the web or elsewhere.

Simply select a block of text from your browser or from a PDF document and drag it onto TextEdit’s icon and a new document containing your text, including its original formatting, will pop up immediately. This is awesome for when you need to manipulate some text but don’t feel like waiting for your bulkier word processing beast to rouse from its slumber.

Two Terminal Tips

Peeking into the really advanced realm, here are two quick tricks you can use in conjunction with the Terminal utility. The first uses Terminal to allow TextEdit to open locked documents. This can be useful when you need to make a change to an important system file but don’t want to go through the trouble of changing permissions before opening or using a specialized utility.

Before I go further, it goes without saying that you should not go mucking about in important locked system files unless you know what you’re doing — you can seriously and permanently damage your system. That being said, if you know what you’re doing then open up Terminal (Spotlight is the easiest way to find it), and type in the following:

sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit

Once you hit enter, you’ll be asked for your administrative password to execute the command. The advantage of using this method is that you can quickly edit the files in question without having to change permissions back and forth. Since all you’re basically doing is giving TextEdit a higher clearance level, the actual file permissions remain intact throughout the process, meaning your computer’s security never falters.

The second tip allows you to pull text from the Terminal for quick editing in TextEdit. It’s actually very simple, and can be accomplished with just the following syntax:

command | open -tf

“Command” in this case can be any standard Terminal command; you can try it with “help”. The text can then be edited and saved as you please, which is useful for debugging script or tweaking syntax.


Conclusion

And that, ladies and gentlemen, is not-so-humble TextEdit for you! Whether or not you decide it’s worthy of replacing your current word processing or text wrangling solution, at least you can look at TextEdit with some renewed respect.

If you learned something or have your own TextEdit tips, let us know in the comments so we can bring together all the best tidbits for this utility. And while you’re at it, you may as well let us know if TextEdit is your main word processor or if you have a different application that you prefer!

Note: Want to add some source code? Type <pre><code> before it and </code></pre> after it. Find out more
  • http://profissionaisdeweb.com/ Marcos

    Excelente article, but the really featured that is missed on TextEdit is the line numbers. This is a big (missed) feature.

  • http://flavors.me/laimagingcinema arief budiman

    TextEdit is blazing fast to load. And it never fails on me. i use TextEdit and myWritings all the time for composing blog journal. plain and simple. too bad most people tend to overlook TextEdit and prefer other beefy, but slower, word processing apps. I encourage people to try it (always use wrap-to-page feature to show layout).

    • emaven

      Set the preferences for new document and check wrap to page. Each new document will then open with wrap to page already chosen.

  • http://7bits.nl/blog/ Peter van Dijk

    open -tf can be shortened to just open -f. The -t is implied with -f.

  • http://nataliaventre.com Natalia Ventre

    Great article! I don’t use TextEdit that much, but after reading this, I should pay it more attention. I didn’t know about cmd crtl D either, I always go to the dictionary in the dashboard, but this keyboard shortcut is definitely better.

  • http://stream.xmoov.com xmoov

    Nice read! Very enlightening.

  • Matt

    I can’t get the dictionary function to work. I’m running snow leopard. Ideas?

  • http://floriankrautkraemer.blogspot.com/ Florian

    Make it have footnotes and it’ll Be my Number One!

    • Stef

      You might like to try iText (Express/Pro). It’s basically TextEdit but with support for page numbers, line numbers, footnotes, headers and footers. It has become my main text/word processor app. It’s just as easy and snappy as TextEdit, yet it has a lot more features, and the Express version is even free. The pro version has furigana for Japanese, customizable toolbar and customizable keybindings ($15).

  • rerhart

    Great article! In addition to the powerful features of TextEdit I recommend the free Rich Text editor Bean (www.bean-osx.com).

    • http://flavors.me/laimagingcinema Arief Budiman

      I used Bean awhile ago. But whenever i close and reopen text file, somehow the formatting changes on other computer using MS Office. Any ideas?

  • John-Michael

    You can also change your .bash_profile and add:

    alias edit=”sudo open -a ‘/Applications/TextEdit.app/Contents/MacOS/TextEdit’”

    so you can open a file with admin rights with a simple: “edit “

    • John-Michael

      Bah, it cut out a bit. The last line should say: edit /path/file.txt

  • FoxyOrb

    Here is something I do regularly with TextEdit. To obtain an instant uniform font formatting of various pasted text from the web, in the Format menu convert to plain text and switch immediately back to rich text. Shift-Command-T twice.

  • wojtek

    thank you so much ! grat stuff !

  • Daniele Malleo

    Perhaps a little known fact is that Apple distributes the full source code of TextEdit together with XCode (It’s part of the documentation). So the more adventurous souls could truly personalize textEdit to fit their needs!

    • http://www.cognoscens.com/edito/edito.html David Mendels

      @Daniele: this is partially true, unfortunately the last version that shipped with Xcode is labelled as 2005- something. I’m quite convinced that there has been some added to TextEdit since then, though I’ll have to check.

      Line numbers and footnotes are a good suggestion though.

  • Pingback: Best of AppStorm in December | Programming Blog

  • Pingback: NextEdit = (TextEdit + NanoCount + Automator) * ma paresse | davidbosman.fr

  • Pingback: 15 Must-Have Free Apps in the Mac App Store | Mac.AppStorm

  • Pingback: 10 Must-Have Free Apps in the Mac App Store | Design City

  • Pingback: מדריכים: טקסטאדיט, סיפורי אייקונים, אייטיונס ועוד | רייצ'ל מלקטת

  • Kalessin

    One of the most useful features is the ability to select columns of text, rather than lines. Hold down the alt key and the mouse pointer changes to a crosshair. Now drag downwards. Awesome, especially for tab separated files.

    • http://www.mariusmasalar.com/ Marius Masalar
      Author

      That’s an excellent tip — good call, K! :)

  • Pingback: Become a Stickies Ninja: Tips, Tricks & Secrets | Mac.AppStorm

  • Pingback: Become a Stickies Ninja: Tips, Tricks & Secrets | Mac Popular

  • Keith

    I use TextEdit almost exclusively for my own personal writing needs (still have Word…Mac + Win…Pages, and InDesign when I need the big guns). But while there is a page setup, TextEdit seems to ignore it. I choose 8.5×11, but if I extend the window to the right, it keeps expanding, so my right margin expands to 13″, 15, 18″, and so on. Is there a way to make it behave and conform to page margins?

  • Ebonie

    So what happens with the ninjas and the nurse? =)

    Is there any way to insert borders? I am using a table as a border but wanted a bit more style than a table with a color.

  • Thomas Foster

    I would like to know how to insert comments for correction purposes using TextEdit but cannot find this function. Is it available?

  • Fred Capio

    a great addition to textEdit is TextSoap, try it…

  • cait

    I just got my first Mac this week and really like TextEdit but I miss having the “text width” view under Zoom in MS Word. How do I set that up?

  • Tim

    My favorite trick with TextEdit is to paste into a current doc with “Paste and Match Style” under Edit menu. This way I don’t mess up the existing text with an oddball font or size.

    That said, printing drives me mad; just what is the page formatting that I can expect printed? It seems like elastic printing.

    I wish Apple would put some creative talent into making TextEdit a more powerful tool without going over the edge to try and make it a Pages.

  • willsee

    Not sure which version you are running, but here in the future, (Mountain Lion), I am running version 1.8.

    Now a great feature one may observe in the lefthand corner of your first screenshot, the tab insert options are visible.

    It took me a while to figure out where this went in the new version, as I have just now started using it for just about everything text-related due to the .rtf’s small file size, but I found that if you are looking to insert a new left, right, center, or decimal tab, one must right-click in the tab field.

    Fairly easy but easily overlooked. Just in case someone is reading this and cannot find the functionality, hope you command-f’d this comment and are now banging away at your cat journal.

    THANK you.

    • willsee

      make that the righthand corner of your first screenshot :)

  • Jess

    Hi,
    I just wanna know how to take off the shadow off my text? It happens whenever I copy paste something. My text/font changes.

    Thank you

  • Becca

    I like TextEdit for copying/pasting recipes to save, including photos, that I find on blogs and sites. However, what I can’t figure out: is there an easy way to resize images once they are pasted into TextEdit?

    Thanks.

  • Antonio

    Ok… It is very interesting, but somebody know how to use hidden text in TextEdit???

  • Nancy

    Is there a way to access the fonts and colors menu via a dropdown menu? I use these a lot and end up having them stuck on my desktop all the time (also Mac Mail, same problem). Yes, I know you can go to the Menu bar and click, hold, glide over and then down a menu, but it’s very inconvenient. Also, yes, I could hit Command- T for the font menu to pop it up, or Command-shift-C (a little more annoying) for the font color, but again, kinda inconvenient. Drop down menu would be awesome. Any ideas or something I don’t know about? TIA

  • blanca

    Please tell me why when I try to copy paste anything that has graphics, the graphics dont show up! I should be able to see the image and the file to be saved as .rftd but have been unable to do so in the vesion that came with Mountain Lion.

  • Jack

    I would just like to be able to highlight sections of text just as one would do with a yellow highlighter on a piece of paper. Is there any editor (or TextEdit feature that so far eludes me) that would allow me to do that?

  • cameronstarke

    how do i download TextEdit???

    • berkandirim

      it should come pre-installed with your mac.

  • Daniel

    Personally, I find that TextEdit’s greatest feature is the plain text mode. No fonts, no resizing, no option bars, nothing. It’s perfect for writing something down, even an entire essay, or just taking notes, without the distractions afforded by more powerful word processors.