While macOS includes dozens of standard keyboard shortcuts (like Command + C for copy and Command + Z for undo), countless everyday menu commands lack native shortcuts altogether. If you find yourself repeatedly clicking through nested menus to select options like “Export as PDF…”, “Paste and Match Style”, “Save All”, or “Merge All Windows”, you are wasting valuable seconds every hour.
Fortunately, macOS includes an operating system-level shortcut engine that allows you to assign a custom keyboard shortcut to any menu item in any application—or across all applications globally—without installing third-party macro tools or automation utilities. In this guide, we walk through how to create custom keyboard shortcuts in macOS, format exact menu strings, and resolve key combination conflicts.
In This Guide
- How macOS App Shortcuts Work
- Step-by-Step: Creating a Shortcut for a Specific App
- Creating a Global Shortcut Across All Applications
- The Critical Syntax Rule: Exact Menu Names and Ellipses
- Productive Shortcuts Worth Creating Right Now
- How to Edit, Reassign, or Delete Custom Shortcuts
- Troubleshooting Non-Triggering Keyboard Shortcuts
How macOS App Shortcuts Work
macOS achieves custom shortcut mapping by inspecting the dynamic menu bar of the active application. Whenever you press a key combination, the window server checks your custom shortcuts database. If the keystroke matches an entry, macOS scans the app’s menu titles (File, Edit, View, Window, Help, etc.) and programmatically clicks the corresponding command.
Key advantages include:
- Native and Lightweight: Runs directly within the macOS core without consuming background memory or requiring auxiliary helper daemons.
- Total App Coverage: Works with native Apple apps (Safari, Finder, Preview, Mail, Pages) and virtually all third-party software (Google Chrome, Slack, Discord, Adobe Creative Cloud, Visual Studio Code).
- Override Capability: You can reassign existing default shortcuts that you find awkward or uncomfortable.
Step-by-Step: Creating a Shortcut for a Specific App
To assign a shortcut to a feature inside a single chosen program (for example, creating a shortcut for “Save as PDF” in Safari):
- Open the target application and note down the exact text of the menu command you wish to trigger, including exact capitalisation and trailing punctuation.
- Click the Apple menu () in the top-left corner and select System Settings.
- In the left sidebar, scroll down and click Keyboard.
- Click the Keyboard Shortcuts… button on the right.
- In the modal sheet that appears, select App Shortcuts in the left pane.
- Click the plus (+) icon beneath the shortcuts list.
- In the Application dropdown, choose your target app (e.g. Safari).
- In the Menu Title field, type the exact name of the menu item (e.g.
Export as PDF...). - Click into the Keyboard Shortcut box and press your desired key combination (e.g. Command + Option + P).
- Click Done.
Switch back to your application. Open the corresponding menu bar: you will see your new keyboard shortcut printed directly beside the command.
Creating a Global Shortcut Across All Applications
If a common command exists across almost every Mac application—such as “Paste and Match Style” or “Merge All Windows”—you can apply it globally across the entire operating system in one step:
- Go to System Settings > Keyboard > Keyboard Shortcuts > App Shortcuts.
- Click the plus (+) button.
- Leave the Application dropdown set to All Applications.
- In Menu Title, type
Paste and Match Style. - In Keyboard Shortcut, press Command + Shift + V.
- Click Done.
Now, whenever you press Command + Shift + V in Pages, Mail, TextEdit, Safari, or Chrome, macOS will strip clipboard formatting and paste clean plain text matching the destination font.
The Critical Syntax Rule: Exact Menu Names and Ellipses
The single most common reason a custom Mac shortcut fails to trigger is incorrect text entry. The Menu Title must match the exact string displayed in the menu bar character-for-character:
- Ellipses Matters: Many commands that open a dialogue box end with an ellipsis. Typing three consecutive periods (
...) is NOT identical to a single typographical ellipsis character (…) on macOS.- To type a true ellipsis on a Mac keyboard, press Option + ; (semi-colon).
- Look closely at the menu item in your app: if the dots appear tight and compact, it uses a true ellipsis (
…). If they are spaced out, it uses three standard periods (...).
- Exact Capitalisation: You must respect upper and lowercase letters. Typing “export as pdf…” will fail if the menu reads “Export as PDF…”.
- Nested Submenus: If the command resides inside a submenu (e.g. File > New > Blank Document), you do not need to type the full parent path. Simply typing the final command name (
Blank Document) is usually sufficient, provided that name is unique within the menu hierarchy.
Productive Shortcuts Worth Creating Right Now
| Application | Exact Menu Title | Suggested Shortcut | Function |
|---|---|---|---|
| All Applications | Paste and Match Style |
Cmd + Shift + V |
Pastes unformatted plain text everywhere |
| Safari | Export as PDF... |
Cmd + Option + P |
Exports the active webpage to PDF instantly |
| Finder | Show Package Contents |
Cmd + Option + O |
Inspects internal files of .app bundles |
| Preview | Adjust Size... |
Cmd + Shift + R |
Opens image resize dialogue immediately |
| All Applications | Merge All Windows |
Cmd + Option + M |
Consolidates scattered windows into single tabbed window |
How to Edit, Reassign, or Delete Custom Shortcuts
If you wish to change a key combination or delete an entry:
- Navigate to System Settings > Keyboard > Keyboard Shortcuts > App Shortcuts.
- Expand the disclosure triangle next to the application name.
- To change the key combination, double-click the existing shortcut on the right, press your new keys, and press Enter.
- To delete a shortcut completely, select the shortcut entry and click the minus (–) button at the bottom of the list.
Troubleshooting Non-Triggering Keyboard Shortcuts
- System Conflict Warning: If your shortcut fails to trigger, it may conflict with an existing global system shortcut (such as Spotlight, Mission Control, or Input Sources). Look for a yellow warning triangle inside the Keyboard Shortcuts settings sheet.
- Restart the Application: While most Cocoa applications register newly added menu shortcuts dynamically, some third-party apps cache menu state on startup. Quit (Command + Q) and relaunch the app to refresh its menu table.
- Check Active Menus: If an action is temporarily disabled (greyed out) in the menu bar because no document is open or no text is highlighted, the shortcut will naturally do nothing until the command becomes valid.