Underline Keyboard Shortcut Mac: A Practical Guide

A comprehensive guide to using Cmd+U for underlining text on Mac, covering macOS shortcuts, app variations, accessibility considerations, and cross-app workflows.

Shortcuts Lib
Shortcuts Lib Team
·5 min read
Quick AnswerDefinition

The underline shortcut on Mac is Cmd+U, a standard toggle in most text editors and word processors. On Windows it’s Ctrl+U, but macOS consistently uses Command+U to apply or remove underline. Some apps may override this in menus, while browser-based editors like Google Docs also use Cmd+U. For accessibility, prefer semantic styling when appropriate rather than relying solely on underline.

Understanding the underline keyboard shortcut on macOS

The underline shortcut on Mac is a quintessential example of consistent keyboard design across text editors and word processors. Cmd+U is the standard toggle used by Pages, Word for Mac, TextEdit, and most browser-based editors when formatting controls are available. This consistency helps power users stay productive whether you're drafting emails, documentation, or code comments. While Cmd+U is widely supported, some apps re-map or disable the shortcut for their own UI, so it’s important to verify in the app’s menu or preferences.

Bash
# Demonstrating a simple, non-destructive approach to emulate the shortcut osascript -e 'tell application "System Events" to keystroke "u" using {command down}'
MARKDOWN
Cmd+U is widely used across Mac apps. In apps that support Markdown, you may also encounter HTML tags to simulate underline: <u>underlined text</u>

Note: Underlining is a formatting feature, not a semantic styling. For accessibility and readability, prefer semantic cues (bold, italic, or CSS-driven styling) when appropriate, and reserve underline for cases where it conveys emphasis or links in ways that readers expect.

} ,

Steps

Estimated time: 15-25 minutes

  1. 1

    Identify target app

    Open a document in your chosen Mac app (Pages, Word for Mac, TextEdit, or a browser document). Confirm the underline feature is available in the Format or Font menu before testing the shortcut.

    Tip: Check the app’s menu or preferences to confirm the exact toggle behavior.
  2. 2

    Test Cmd+U in document

    Place the cursor or select text, then press Cmd+U to apply underline. If nothing happens, verify the shortcut isn’t overridden by app-specific bindings or disabled by accessibility settings.

    Tip: If you rely on a toolbar button, use Cmd+U as a fallback for speed.
  3. 3

    Verify cross-app consistency

    Test Cmd+U across at least two apps (e.g., Pages and Google Docs). Note any deviations in behavior or conflicts with other shortcuts.

    Tip: Document app-specific differences to avoid surprises in workflows.
Pro Tip: Use Cmd+U as your primary underline shortcut; rely on other cues when editing long documents.
Warning: Underline should not be the only means of emphasis—consider accessibility and readability.
Note: In some web editors, underline is reserved for hyperlinks; always test in your target environment.

Prerequisites

Required

  • macOS 10.15+ (Catalina) or newer
    Required
  • Pages, Word for Mac, TextEdit, or a web-based editor like Google Docs
    Required
  • Basic knowledge of keyboard shortcuts
    Required

Optional

  • AppleScript/Automator basics (optional for automation)
    Optional
  • A text editor or editor with formatting controls
    Optional

Keyboard Shortcuts

ActionShortcut
Underline text (toggle)Most Mac text editors and appsCtrl+U
Underline text in Google Docs (Mac)Browser-based editorCtrl+U

Questions & Answers

What is Cmd+U on Mac?

Cmd+U is the standard Mac shortcut to toggle underline in most editors and word processors. It commonly works in Pages, Word for Mac, TextEdit, and Google Docs.

Cmd+U toggles underline in most Mac apps, including pages and Google Docs.

Does Cmd+U work in all Mac apps?

Not every app uses Cmd+U for underline. Some apps map the function to a different shortcut or disable it in certain modes.

Not every app uses Cmd+U; check the app’s menu if it doesn’t respond.

How do I remove an underline?

Select the underlined text and press Cmd+U again, or use the app’s formatting options to toggle underline off.

Select the text and press Cmd+U again to remove the underline.

Can I customize the shortcut?

macOS supports per-app shortcuts via System Preferences in some editors, but not all apps allow global remapping.

Yes, you can customize in some apps via system shortcuts, but it varies by app.

Is underline accessible?

Underline can hinder readability; consider semantic cues and ensure sufficient contrast when using it.

Underline should be used thoughtfully; prioritize accessibility.

What about underline in Markdown or code?

Markdown generally lacks a native underline syntax; use HTML tags or CSS, or rely on editor-specific features.

Markdown doesn’t standardly support underline; use HTML/CSS where needed.

Main Points

  • Use Cmd+U to toggle underline on Mac in most apps
  • Test app-specific behavior to avoid shortcut conflicts
  • Prefer semantic emphasis over underline where possible
  • In web editors, underline often maps to HTML/CSS rather than a native command

Related Articles