Text expansion on a Mac works through Keyboard settings: choose Apple menu > System Settings > Keyboard, then Customize Phrases, click the Add button, type the text to replace and its replacement, and click Add and Done. After that, typing the short form in an app expands it. Built-in substitutions turn a double space into a period and space, “fwiw” into “for what it’s worth”, and straight quotes into smart quotes; smart links turn text such as apple.com into a clickable link. In an app, Edit > Substitutions > Custom Phrases switches the feature on or off, with a checkmark showing its state.

Before you begin

There are two kinds of substitution here. The ones you create yourself live under Custom Phrases in Keyboard settings — or under Text Input > Edit in older macOS versions. The others are built into macOS: a double space becomes a period and space, “fwiw” becomes “for what it’s worth”, straight quotes become smart quotes, and a URL such as apple.com becomes a clickable link.

Neither kind works everywhere. Custom phrases, smart quotes and dashes, and smart links are not available in all apps, so a phrase that expands in one app may sit untouched in another. With Chinese or Japanese input methods, custom phrases are included in the user dictionary instead of following the usual path.

Steps

Open the Apple menu, choose System Settings, and click Keyboard, then Customize Phrases. On older macOS versions, use Text Input > Edit. Click the Add (+) button, type the short text you want to replace — “teh”, for example — and its replacement, “the”. Click Add, then Done.

In the app where you want to use the phrase, check Edit > Substitutions > Custom Phrases. A checkmark means it is on; choosing the item toggles it off. To apply a phrase to text you have already written, select that text, choose Edit > Substitutions > Show Substitutions, then pick Replace in Selection or Replace All.

What to check

If a new phrase does nothing, check the app’s Substitutions menu first rather than rewriting the phrase. The checkmark on Custom Phrases is the state indicator, and the feature is not available in every app.

For the double-space habit, the setting lives at Keyboard settings > Text Input > Edit, where the option to insert a period with a double-tap of the space bar is listed. This is separate from phrases you add yourself, even though both appear in the same area of Keyboard settings.

If you use a Chinese or Japanese input method, look for your custom phrases in the user dictionary rather than expecting the standard Custom Phrases behaviour. That is where those input methods include them.

Where people go wrong

People add a phrase and assume it applies globally. It does not: substitution support varies by app, and the Edit > Substitutions menu is where you confirm the state in the app in front of you. Others try to edit already-typed text by retyping it, when Show Substitutions offers Replace in Selection or Replace All directly.

A third pattern is hunting for the double-space-to-period option inside a list of custom phrases. It sits under Text Input > Edit, not in the phrase list, which is why it is easy to miss.

If you want a utility alongside the built-in steps, Alfred — launcher and automation tool with workflows and snippets. The macOS workflow above remains the primary path.

Sources

Frequently Asked Questions

Why isn't my custom phrase expanding?

Check Edit > Substitutions > Custom Phrases in the app: a checkmark shows whether it is on. Custom phrases, smart quotes and dashes, and smart links are not available in all apps.

Can I expand text I have already typed?

Yes. Select the text, choose Edit > Substitutions > Show Substitutions, then pick Replace in Selection or Replace All.

Where is the double-tap space setting?

The option to insert a period by double-tapping the space bar is under Keyboard settings > Text Input > Edit, where older macOS versions also keep the Edit command for text replacements.