Quantcast
RSS

Enable Global Text Replacements in Snow Leopard

One of Snow Leopard's more intriguing new features is text substitution, which lets the operating system replace defined sets of characters with other characters... Rob Griffiths, Macworld.com

Was this article useful? Yes 0 No 0

One of Snow Leopard's more intriguing new features is text substitution, which lets the operating system replace defined sets of characters with other characters or symbols. For instance, typing (c) will generate the copyright symbol, ©. You can define your own shortcuts in the Language & Text System Preferences panel, on the Text tab.

However, substitutions are not enabled globally by default; they must be enabled in each application that supports them by selecting Edit -> Substitutions -> Text Replacement. If you'd rather enable substitutions globally, open Terminal and enter this command:

defaults write -g WebAutomaticTextReplacementEnabled -bool true

Note that this will only affect programs that support text replacement, and in which you haven't disabled text replacement via the menu. (That is, if you disabled text replacement in Mail, the above command will not turn it back on.)

There are some reasons you may not want this enabled by default, which may be why Apple didn't turn it on everywhere. As but one example, if you're writing code and you want to refer to a variable c, it might look something like this: mystring = uppercase(c). With text substitution enabled in your text editor, that (c) would instantly turn into ©, which is clearly not what you want.

If you decide you'd like to revert to having substitutions off by default, use this command in Terminal to delete the preference you created:

defaults delete -g WebAutomaticTextReplacementEnabled

Again, if you've manually set some program to use substitutions, the above command will not automatically disable them--the program's manual setting always overrides the global default. Thanks to Mac OS X Hints contributor GaelicWizard for unearthing this one.

Was this article useful? Yes 0 No 0
Add Yours

Comments Readers reply with their ideas and expertise.

Subscribe to this discussion via email or RSS
  • What do you think?

Business News Daily

Get the latest technology news that's important to you and your business, fresh seven days a week.

Featured Webcasts

Free Whitepapers

Software and Services Whitepapers from PC World

More whitepapers »

Whitepaper Alerts

Get updates on white papers, case studies, and spotlights on tech products and solutions for your business.

PC World's Marketplace

Sponsored Links