Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Underline Shortcut Key: Quick Guide for Any App

· 5 min read · Home Automation

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The underline shortcut is Ctrl+U on Windows and Linux, and Cmd+U on Mac. Press it once to start underlining and again to stop. It works in nearly every text editor, word processor, email client, and browser-based form field, but a few apps and mobile keyboards handle it differently.

What You'll Need

  • A device with a physical keyboard (Windows, Mac, Linux, or Chromebook) or a mobile device with an on-screen keyboard that supports text formatting.
  • An app or text field where you can type and apply formatting, such as Microsoft Word, Google Docs, Apple Pages, Notepad++ (which supports basic formatting via plugins), or a web form.
  • Text selected or a cursor placed where you want the underline to begin.

Step-by-Step

  1. Open your document or text field. Click into the area where you want to type. This could be a Word document, a Google Doc, an email body, or a comment box.
  2. Select the text you want to underline (optional). If you want to underline existing text, highlight it with your mouse or keyboard (Shift+Arrow keys). If you want to start typing underlined text, just place the cursor where you want to begin.
  3. Press the underline shortcut. On Windows or Linux, press Ctrl+U. On a Mac, press Cmd+U. On a Chromebook, press Ctrl+U. You should see the Underline button in the toolbar become active, or the selected text gains an underline.
  4. Type your text. Any new text you type will now be underlined. If you selected existing text, it will be underlined immediately.
  5. Turn off underlining. Press the same shortcut again (Ctrl+U or Cmd+U) to stop underlining. The toolbar button will deactivate, and new text will be plain.
  6. Verify the result. Click elsewhere in the document to deselect and check that the underline appears as expected. If it does not, see Troubleshooting below.

Note: Menu labels and toolbar icons can differ slightly between app versions, devices, and regions. The shortcut itself is consistent across most desktop applications.

Common Mistakes

  • Using the wrong modifier key. On Mac, Ctrl+U does not underline; you must use Cmd+U. On Windows, Cmd does not exist, so Ctrl+U is correct.
  • Forgetting to select text first. If you press Ctrl+U with no text selected, it toggles the underline mode for new typing. If you expected existing text to change, select it first.
  • Confusing underline with other formatting. Ctrl+U underlines; Ctrl+I italicizes; Ctrl+B bolds. Pressing the wrong one gives unexpected results.
  • Assuming it works everywhere. Some plain-text editors (like Notepad on Windows) do not support underline formatting at all. The shortcut may do nothing or trigger a different action.
  • Using browser shortcuts that conflict. In some browsers, Ctrl+U opens the page source. If you press Ctrl+U in a web form and the source window opens, click back into the form and try again, or use the app's own underline button.

Tips

  • Use the toolbar as a visual check. Most apps show an active Underline button (often a U with a line under it) when underline mode is on. Glance at it to confirm.
  • Underline a single word quickly. Double-click the word to select it, then press Ctrl+U (or Cmd+U).
  • Remove underline from pasted text. Select the text and press Ctrl+U (or Cmd+U) to toggle it off. If the underline persists, use the Clear Formatting option (often Ctrl+Space or a toolbar button) to strip all styling.
  • On mobile, use the keyboard's format bar. Many mobile keyboards (like Gboard or the iOS keyboard) do not have a dedicated underline shortcut. Instead, select text and use the app's formatting menu (e.g., in Google Docs app, tap the A icon with lines).
  • Keyboard layout matters. On non-US keyboards, the U key is in the same physical position, so Ctrl+U works the same. No need to change layout.

Troubleshooting

If the underline shortcut does not work as expected, try these steps in order:

  1. Check that you are in an editable field. Click directly into the text area. Some web pages have read-only fields where formatting is disabled.
  2. Confirm the app supports underline. Plain-text editors (Notepad, TextEdit in plain-text mode) do not. Switch to a rich-text editor or use a different app.
  3. Try the menu alternative. Most apps have Format > Text > Underline or a toolbar button. If the shortcut fails but the menu works, the app may have a conflicting shortcut. Check the app's keyboard preferences.
  4. Restart the app. Close and reopen the application. This clears temporary glitches.
  5. Update the app. Outdated versions may have bugs. Install the latest update from the official source (Microsoft Store, Mac App Store, or the developer's website).
  6. Check for browser conflicts. In a web browser, Ctrl+U often opens the page source. If that happens, you are not in an editable field, or the site intercepts the key. Click into the text box first, or use the site's own formatting buttons.
  7. Test in a different app. Open a simple rich-text editor (like WordPad on Windows or TextEdit in rich-text mode on Mac) and try the shortcut there. If it works, the issue is with the original app.

If none of these steps resolve the issue, the app may not support keyboard shortcuts for formatting. Use the toolbar or menu instead.

Frequently Asked Questions

What is the underline shortcut on a Mac?

Cmd+U. Hold the Command key and press U.

Does Ctrl+U work in Google Docs?

Yes, in the desktop browser version of Google Docs, Ctrl+U (Windows/Linux) or Cmd+U (Mac) toggles underline for selected text or new typing.

Why does Ctrl+U open page source in my browser?

In most browsers, Ctrl+U is the shortcut to view page source. If you press it while not in an editable field, the browser opens the source. Click into a text box first, or use the browser's menu to format text if available.

Can I underline text on a phone or tablet?

There is no universal keyboard shortcut. In most mobile apps, select the text and tap the underline button in the formatting toolbar (often a U with a line under it).

How do I remove underline from text?

Select the underlined text and press Ctrl+U (Windows/Linux) or Cmd+U (Mac) to toggle it off. Alternatively, use the Clear Formatting option in your app.

Is the underline shortcut the same in Microsoft Word and Excel?

Yes, Ctrl+U (Windows) or Cmd+U (Mac) works in both Word and Excel to underline cell contents or text.