Smart Systems for Home

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

Command H on Mac: What It Does and How to Use It

· 5 min read · Home Tech

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

Command+H on a Mac hides the frontmost app window or all windows of the current app, depending on the app and macOS version. It's a quick way to declutter your screen without quitting anything. To use it, press the Command key and the H key at the same time. That's it—no setup needed. You can bring the window back by clicking the app's icon in the Dock or using Command+Tab to switch back to it.

What You'll Need

  • A Mac running macOS (any recent version works; the exact behavior may vary slightly).
  • A keyboard with a Command key (⌘)—standard on all Mac keyboards.
  • An app that is currently open and has at least one window on screen.

Step-by-Step

  1. Make sure an app is active. Click on any window of the app you want to hide, so that it becomes the frontmost app. For example, open Safari and click inside its window.
  2. Press Command+H. Hold down the Command key (⌘) and tap the H key. Do not hold H—just press it once. The window(s) of that app will disappear from the screen immediately.
  3. Verify the app is still running. The app is not closed; it's just hidden. You can confirm this by looking at the Dock—the app's icon will still be there, possibly with a small dot beneath it (indicating it's running).
  4. Bring the window back. To unhide, click the app's icon in the Dock. Or use Command+Tab to cycle through open apps and release when the hidden app is highlighted. The window will reappear exactly where it was.
  5. Hide all other apps (optional). If you want to hide every other app except the one you're currently using, press Command+Option+H. This hides all other apps' windows, leaving only the active app visible.

Common Mistakes

  • Holding the keys too long. Pressing Command+H and holding it can sometimes trigger a different shortcut or cause the key to repeat, though on most systems it just hides once. Still, a quick tap is best.
  • Expecting it to hide only one window. In most apps, Command+H hides all windows of that app, not just the frontmost one. If you only want to hide a single window, use Command+M to minimize that window instead.
  • Thinking the app is closed. Hidden apps continue running in the background, using memory and CPU. If you want to quit, use Command+Q instead.
  • Using it in full-screen mode. If an app is in full-screen (the green button), Command+H may not hide it as expected. In some macOS versions, it will exit full-screen first or do nothing. Exit full-screen (press Esc or move the cursor to the top to reveal the menu bar and click the green button) before using Command+H.

Tips

  • Use Command+Option+H to hide everything else. This is great for focusing on one app without closing others.
  • Hide the Finder too. Command+H works on the Finder as well. If you have Finder windows open, you can hide them all with Command+H.
  • Customize the shortcut. If you prefer a different key combination, go to System Settings > Keyboard > Keyboard Shortcuts > App Shortcuts (or System Preferences > Keyboard > Shortcuts on older macOS) and add a new shortcut for the "Hide" menu command. But be aware that changing it may affect all apps.
  • Use the menu bar. You can also hide an app by clicking the app name in the menu bar (top-left) and selecting Hide AppName (e.g., Hide Safari). The shortcut is shown next to it.
  • Quickly unhide with the Dock. Clicking the app's Dock icon is the fastest way to bring it back. If you have many windows, the app may restore them all.

Troubleshooting

If Command+H doesn't hide the app as expected, try these in order:

  1. Check if the app is actually active. Click on the app's window first. If the app is in the background, Command+H will hide the frontmost app, not the one you intended.
  2. Make sure you're pressing the correct key. The Command key is the one with the ⌘ symbol, next to the space bar. Some keyboards have a Windows key that may not work as Command unless configured.
  3. Try using the menu bar. Click the app's name in the menu bar and select Hide AppName. If that works, the keyboard shortcut may be disabled or reassigned.
  4. Check System Settings for keyboard shortcuts. Go to System Settings > Keyboard > Keyboard Shortcuts > App Shortcuts. Look for a conflict. If you've assigned Command+H to something else, it will override the default. Remove or change that assignment.
  5. Restart the app. Sometimes an app may have a glitch. Quit the app (Command+Q) and reopen it.
  6. Restart your Mac. If the shortcut still doesn't work, a restart often clears temporary system issues.

Frequently Asked Questions

Does Command+H hide all windows of an app or just the front one?

In most apps, Command+H hides all windows belonging to that app. If you want to hide only the front window, use Command+M to minimize it instead.

Can I unhide an app without using the mouse?

Yes. Press Command+Tab to bring up the app switcher, keep holding Command, and press Tab until the hidden app is highlighted, then release. The app's windows will reappear.

What's the difference between Command+H and Command+M?

Command+H hides the entire app (all windows) from view but keeps it running. Command+M minimizes only the frontmost window to the Dock, leaving other windows of the same app visible.

Does Command+H work in full-screen apps?

In full-screen mode, Command+H may not work as expected. On some macOS versions, it will exit full-screen first or do nothing. Exit full-screen before using it.

Can I change the shortcut for hiding apps?

Yes. Go to System Settings > Keyboard > Keyboard Shortcuts > App Shortcuts, click the + button, select the app (or "All Applications"), type the exact menu command name (e.g., "Hide Safari"), and assign a new shortcut. Be careful not to conflict with other shortcuts.

Is there a way to hide all apps at once?

Yes, press Command+Option+H to hide all apps except the one you're currently using. There's no built-in shortcut to hide every app including the current one, but you can press Command+H after that to hide the last one.