Alternatively called Cmd+U, Command+U is a keyboard shortcut often used to underline text.
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.
On Windows computers, the shortcut for underline Ctrl+U.
- How to use the Command+U keyboard shortcut.
- Command+U in an Internet browser.
- Command+U with word processors and text.
- Command+U in Microsoft Excel and other spreadsheet programs.
- Command+U in Microsoft PowerPoint.
- Related keyboard shortcuts and keys.
- Related information.
- Computer keyboard shortcuts.
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.
- Firefox shortcuts
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.
- Full list of Excel shortcuts.
- Google Sheets shortcuts.
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.
- Full list of PowerPoint shortcuts.
Related keyboard shortcuts and keys
Below are links to related keyboard shortcuts and individual key pages.
- Command
Cmd, Keyboard shortcut, Keyboard terms, U, Underline
Related information
- How to view the HTML source code of a web page.
- Computer keyboard shortcuts.
- Top 10 keyboard shortcuts everyone should know.
- Keyboard help and support.