Command+U

Updated: 12/31/2020 by Computer Hope
Apple Command key, plus sign, and the letter U

Alternatively called Cmd+U, Command+U is a keyboard shortcut most commonly used to underline text. Below are other programs that use this keyboard shortcut and related information.

Tip

On Windows computers, the shortcut for underline Ctrl+U.

How to use the Command+U keyboard shortcut

To use this keyboard shortcut, press and hold either Command key, and while continuing to hold, press U.

Command+U in an Internet browser

In Firefox, pressing Command+U opens the current page's source code in a new browser tab. For example, you could press Command+U to view the source code of this page.

Command+U with word processors and text

In word processors and text editors, Command+U performs different functions based on highlighting. If no text is highlighted, pressing this keyboard shortcut turns the underline feature on or off at the cursor's location. If text is highlighted, pressing Command+U changes that content's appearance between underlined and not underlined.

Command+U in Microsoft Excel and other spreadsheet programs

In Microsoft Excel and other spreadsheet programs, Command+U performs different functions based on highlighting. If you're working in a cell and no text is highlighted, pressing this keyboard shortcut turns the underline feature on or off at the cursor's location. If text is highlighted, pressing Command+U changes that content's appearance between underlined and not underlined.

Command+U in Microsoft PowerPoint

In Microsoft PowerPoint, Command+U performs different functions based on highlighting. If no text is highlighted, pressing this keyboard shortcut turns the underline feature on or off at the cursor's location. If text is highlighted, pressing Command+U changes that content's appearance between underlined and not underlined.

Below are links to related keyboard shortcuts and individual key pages.

Cmd, Keyboard shortcut, Keyboard terms, U, Underline