Sub topic 3
Switching, closing, and hiding apps and windows
This chapter assumes you know the modifier key symbols (⌘ Command, ⌥ Option, ⌃ Control, ⇧ Shift) and can open apps and System Settings. It covers how to move between apps and windows, and how to close, hide, or quit them without the mouse.
Apps and windows are different things
macOS separates an app from its windows. An app is the running program. A window is one document or view that the app shows. Closing a window often leaves the app running, which is why the Dock shows a small dot under an app with no windows open.
Each shortcut below acts on one of these levels. Most mistakes come from using a window shortcut when you meant an app shortcut, or the reverse.
| Level | Close | Hide | Switch |
|---|---|---|---|
| Window | ⌘W | ⌘M (minimize) | ⌘\` |
| App | ⌘Q | ⌘H | ⌘Tab |
Switching between apps
Hold ⌘ and press Tab to open the app switcher. Keep ⌘ held and press Tab again to move right through your recent apps. Add ⇧ to move left. Release ⌘ to switch to the highlighted app.
While the switcher is open, you can act on the highlighted app without releasing ⌘:
- Press Q to quit the app.
- Press H to hide the app.
- Press the up or down arrow, or 1, to show the app's windows in the switcher.
A quick tap of ⌘Tab, without holding, jumps back to the app you used just before this one. Tapping it again returns you. This is the fastest way to flip between two apps, such as a document and a browser.
Switching between windows of one app
⌘\` (Command and the backtick key, usually above Tab) cycles through the open windows of the current app. Add ⇧ to go backward. This is useful with several Finder windows, several text documents, or multiple browser windows.
On some non-US keyboards the backtick key is in a different place. In that case, the shortcut follows the key that sits above Tab on your layout. You can check it in System Settings under Keyboard, Keyboard Shortcuts, Keyboard.
Closing, hiding, and quitting
These four actions differ in what they do to your work.
- ⌘W closes the front window. The app keeps running. Add ⌥ (⌥⌘W) to close every window of the app.
- ⌘M minimizes the front window to the Dock. Add ⌥ (⌥⌘M) to minimize all of the app's windows.
- ⌘H hides the whole app. Its windows disappear, but the app keeps running and its state is kept. Add ⌥ (⌥⌘H) to hide every other app and leave only the current one visible.
- ⌘Q quits the app completely, which frees its memory.
To bring a hidden app back, switch to it with ⌘Tab. A minimized window stays in the Dock until you click it. If you switch to a minimized window's app with ⌘Tab, hold ⌥ as you release ⌘ to restore the window.
A worked example
Suppose you are writing a report in a text editor, checking figures in a spreadsheet, and have a chat app open that distracts you.
- Press ⌘Tab once to jump from the editor to the spreadsheet.
- Press ⌘\` to cycle to a second spreadsheet window.
- Press ⌥⌘H to hide everything except the spreadsheet and focus on it.
- Press ⌘W to close the spreadsheet window you no longer need. If it has unsaved changes, macOS asks whether to save, so you do not lose work.
- Press ⌘Tab to return to the editor.
Common errors
- Pressing ⌘Q by accident loses the app's window state and may interrupt work. Some apps, such as Safari and Chrome, can be set to require holding ⌘Q, which prevents accidental quits.
- Expecting ⌘W to quit the app. In most Mac apps the app stays open, so it still uses memory.
- Using ⌘Tab when you want another window of the same app. ⌘Tab switches apps, so use ⌘\` instead.
- Releasing ⌘ too early in the switcher, which selects the app you did not intend. Keep ⌘ held until the right app is highlighted.
Exercise
You have three Finder windows and one Safari window open. You are in Finder and want to reach the second Finder window, then hide every app except Finder. Which shortcuts do you use, and in what order?
Show answer
Press ⌘\` to move to the next Finder window (press it again if needed to reach the right one). Then press ⌥⌘H to hide all other apps, which hides Safari and leaves Finder visible. ⌘Tab would not work for the first step because it switches apps, not windows.