Smart Systems for Home

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

Keyboard Shortcut for Underline: Quick Guide

· 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 keyboard shortcut for underline is Ctrl+U on Windows and Linux, and Cmd+U on Mac. Press it while text is selected or while your cursor is in a text field to toggle underline on or off. This works in most text editors, word processors, email clients, and web forms, but not in every app, and the exact behavior can vary. Below is a step-by-step guide to using it reliably, plus common pitfalls and fixes.

What You'll Need

  • A computer with a standard keyboard (Windows, Mac, Linux, or Chromebook).
  • An application that supports rich text formatting, such as a word processor, email composer, or note-taking app.
  • Text selected or a cursor placed where you want the underline to start.

Step-by-Step

  1. Open the document or text field where you want to add underline. This could be a word processor, an email draft, a blog editor, or a comment box.
  2. Select the text you want to underline. If you want to type new underlined text, place the cursor where you want to start typing.
  3. Press the shortcut: on Windows or Linux, hold Ctrl and press U; on Mac, hold Command (⌘) and press U. On a Chromebook, use Ctrl+U.
  4. Check the result. Selected text should now be underlined. If you only placed the cursor, anything you type next should appear underlined.
  5. To turn underline off, press the same shortcut again, or move the cursor outside the underlined text and continue typing normally.

Note: Menu labels and shortcut behavior can differ slightly between app versions, operating systems, and regions. If the shortcut does not work, look for an underline button (usually a U with a line under it) in the formatting toolbar, or check the app's help documentation.

Common Mistakes

  • Using the wrong modifier key. On Mac, Ctrl+U often does something else (like showing page source in a browser). Use Command+U for underline.
  • Expecting underline in plain-text fields. Many web forms, code editors, and chat boxes only accept plain text, so Ctrl+U may do nothing or trigger a browser function instead.
  • Confusing underline with underscore. The underscore character (_) is a typed symbol, not formatting. Pressing Shift+Minus types an underscore; Ctrl+U applies underline formatting.
  • Forgetting to select text first. If nothing is selected, the shortcut usually toggles underline for the next typed characters, which can lead to unintended underlining.
  • Assuming the shortcut works everywhere. Some apps use Ctrl+U for other actions, such as viewing page source in a web browser or inserting a special character in certain editors.

Tips

  • Use underline sparingly. In web content, underlined text is often mistaken for a hyperlink, so reserve it for emphasis where no link is present.
  • In Google Docs, Ctrl+U (Cmd+U on Mac) works as expected. In Microsoft Word, the same shortcut applies underline. In Apple Pages, Cmd+U underlines.
  • If you need to underline a single word, double-click the word to select it, then press the shortcut.
  • To remove underline from a whole paragraph, select the paragraph and press the shortcut once. If it was applied with a style, you may need to clear formatting instead.
  • On mobile devices, there is no physical keyboard shortcut; use the formatting button in the app's toolbar (often a U icon) after selecting text.

Troubleshooting

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

  1. Check that the text field supports formatting. Try the toolbar underline button. If it is greyed out or missing, the field is plain text only.
  2. Confirm you are using the correct modifier key. On Windows and Linux, it is Ctrl; on Mac, it is Command. On Chromebooks, it is Ctrl.
  3. Make sure the application window is active. Click inside the document first, then try the shortcut again.
  4. Look for conflicting shortcuts. Some apps let you customize keyboard shortcuts. Check the app's settings or preferences for keyboard shortcuts and see if Ctrl+U or Cmd+U has been reassigned.
  5. Restart the application. Close and reopen it, then test the shortcut in a new document.
  6. Update the application. An outdated version may have bugs. Install updates through the official app store or the developer's website.
  7. Try a different app. If the shortcut works elsewhere, the issue is specific to that application. Consult its help resources.

If none of these steps resolve the issue, the application may simply not support keyboard shortcuts for underline. In that case, use the toolbar button or menu option instead.

Frequently Asked Questions

Does Ctrl+U work in all programs?

No. It works in most rich-text editors and word processors, but many plain-text fields, code editors, and some web apps do not support it. In web browsers, Ctrl+U typically opens the page source, not underline.

What is the underline shortcut on a Mac?

Command+U. The Control key is not used for underline on macOS.

Can I underline text on a phone or tablet?

There is no physical keyboard shortcut on mobile. Select the text, then tap the underline icon (usually a U with a line) in the formatting toolbar of your app.

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

In most web browsers, Ctrl+U (or Cmd+U on Mac) is the shortcut to view the page's HTML source. To underline text in a browser text field, the field must support rich text; otherwise, underline is not available.

How do I remove underline?

Select the underlined text and press the same shortcut again (Ctrl+U or Cmd+U). If the underline was applied via a style, you may need to clear formatting or change the style.

Is there a universal underline shortcut?

No single shortcut works in every application. Ctrl+U (Windows/Linux) and Cmd+U (Mac) are the most common, but always check the app's own documentation or toolbar for the correct method.