OS X Yosemite: Replace text and punctuation in documents

Replace text and punctuation in documents

In many apps, you can automatically replace text and punctuation. For example, you can automatically replace “teh” with “the,” or replace straight quotes with “curly” quotes (called smart quotes). You can also have Internet addresses (URLs) converted to clickable links (called smart links).

Replace text

Automatically replace certain text with other text or symbols. For example, replace “(c)” with ©.

Create text replacements: Choose Edit > Substitutions > Show Substitutions, then click Text Preferences. In the Text pane of Keyboard preferences, click Add , then type the text to replace (such as “teh”) in the Replace column, and its replacement (such as “the”) in the With column.

Set an app to always use text replacement: In a document, choose Edit > Substitutions, then choose Text Replacement (a checkmark shows it’s on). To turn it off, choose the command again.

Apply text replacement to existing text: To use it in part of a document, select the text, choose Edit > Substitutions > Show Substitutions, make sure the Text Replacement checkbox is selected, then click Replace in Selection. To use text replacement in the entire document, click Replace All.

Back up your text replacements: Select the replacements in the list, then drag them from the Text pane to the desktop. You can edit the backup file (Text Substitutions.plist) using TextEdit. To import the file, drag it into the Text pane of Keyboard preferences.

If you use Chinese or Japanese input methods, your text replacements are included in your user dictionary. For more information about user dictionaries, choose Help from the Input menu while using one of the Chinese or Japanese input methods.

Use smart quotes and dashes

Automatically convert straight quotation marks to typographical (“curly”) ones, and double hyphens to em dashes (—).

Set an app to always use smart quotes and dashes: In a document, choose Edit > Substitutions, then choose Smart Quotes and Smart Dashes (checkmarks show they’re on). To turn them off, choose the commands again.

Apply smart quotes and dashes to existing text: To use them in part of a document, select the text, choose Edit > Substitutions > Show Substitutions, make sure the Smart Dashes and Smart Quotes checkboxes are selected, then click Replace in Selection. To use them in the entire document, click Replace All.

Choose a style for smart quotes: In a document, choose Edit > Substitutions > Show Substitutions, make sure the Smart Quotes checkbox is selected, then choose styles from the pop-up menus.

You can set a default style for smart quotes for all apps that use them in the Text pane of Keyboard preferences.

Use smart links

Automatically convert URLs or other strings to clickable links. For example, “www.apple.com” is converted to a link that opens that website. Or “mailto:annejohnson1@me.com” is converted to a link that creates an email message for Anne Johnson.

Set an app to always use smart links: In a document, choose Edit > Substitutions, then choose Smart Links (a checkmark shows it’s on). To turn it off, choose the command again.

Apply smart links to existing text: To use smart links in part of a document, select the text, choose Edit > Substitutions > Show Substitutions, select the Smart Links checkbox, then click Replace in Selection. To use them in the entire document, click Replace All.

Last Modified: Sep 23, 2015
Helpful?
32% of people found this helpful.

Additional Product Support Information