Sub topic 13
Switching apps with the Dock and Command-Tab
This chapter assumes you can open apps from Finder, know what the Dock and menu bar are, and have read the earlier chapters on Dock anatomy and context menus. It covers the two main ways to move between running apps: clicking the Dock and using the Command-Tab app switcher. It also covers the related window-level shortcuts and the mistakes people make most often.
Apps, windows, and what "switching" means
macOS separates two ideas that are easy to confuse.
- An app is a running program. Only one app is frontmost at a time, and the menu bar shows that app's menus.
- A window belongs to an app. One app can have many windows, and they can be on different Spaces.
Switching apps changes which app is frontmost. Switching windows changes which window of the frontmost app receives your typing. Different tools do different jobs, and the table below shows which one to pick.
| Goal | Best tool |
|---|---|
| Go to a different app | Command-Tab, or click its Dock icon |
| Go back to the previous app | Command-Tab, then release |
| Cycle through windows of the current app | Command-` (backtick) |
| See all windows at once | Mission Control (covered in a later chapter) |
| Launch an app that is not running | Click its Dock icon |
Switching with the Dock
Each app icon in the Dock represents one app, running or not. A small dot under an icon means the app is running. When you click an icon:
- If the app is not running, it launches.
- If the app is running, it becomes frontmost, and its windows come forward.
- If the app is running but has no open windows, many apps open a new window. Others only change the menu bar. This depends on the app.
The Dock is also useful for windows. Minimized windows sit at the right end of the Dock, next to the Trash, and a click restores them. Right-clicking (or Control-clicking) an app icon lists that app's open windows, so you can jump straight to one.
Dock click behavior in practice
A single click on a running app brings forward all of its windows that are on the current Space. If the app's only windows are on another Space, macOS may switch you to that Space. This is controlled by a setting in Mission Control (see the troubleshooting section below).
Switching with Command-Tab
Hold Command and press Tab. A panel appears in the middle of the screen with an icon for each running app. The list is ordered by most recently used, so the app you were just in is always the first one after the current app.
The key behaviors:
- Quick tap. Press Command-Tab and release both keys at once. You jump to the previous app. Pressing it again jumps back. This toggles between your two latest apps.
- Hold and step. Keep Command down and press Tab again to move right. Add Shift (Command-Shift-Tab) to move left. Release Command to choose the highlighted app.
- Arrow keys. While the panel is open, the Left and Right arrow keys also move the highlight.
- Cancel. Press Escape while holding Command to close the panel without switching.
Actions inside the switcher
While the panel is open and you still hold Command, you can act on the highlighted app without leaving the keyboard:
| Key | Effect |
|---|---|
| Q | Quit the highlighted app |
| H | Hide the highlighted app |
| 1 (or Up arrow) | Show the app's windows in an expose-style view, where supported |
| Escape | Dismiss the switcher |
Quitting with Q is the fastest way to close several apps at once. It is also the easiest way to quit the wrong app, so check the highlight before you press it.
Switching between windows of one app
Command-Tab moves between apps, not windows. To cycle through windows of the frontmost app, press Command-` (the key above Tab on a US keyboard). Add Shift to go backward. On keyboards where the key is in a different place, you can change this shortcut in System Settings under Keyboard, then Keyboard Shortcuts, then Keyboard.
A common surprise: if you Command-Tab to an app and it comes forward but no window appears, the app is running with all windows minimized or closed. Command-Tab selected it correctly, but there is nothing to show. To restore a minimized window while you hold Command, hold Option as you release Tab. The window comes back instead of staying minimized.
Hidden and minimized apps
The word "hidden" and the word "minimized" mean different things.
- Hidden (Command-H) removes every window of an app from view at once. The app stays in the Command-Tab list. Selecting it shows the windows again.
- Minimized (Command-M) shrinks one window into the Dock. Other windows of the same app stay where they are.
If you cannot find an app's window, check both. Hidden apps show a faded icon in the Dock on some versions of macOS, and minimized windows appear on the right side of the Dock.
Edge cases and common errors
- An app is missing from Command-Tab. Only apps with a regular Dock presence appear. Background utilities and menu bar-only apps do not, even though they are running. Use the Apple menu's Force Quit window or Activity Monitor to find them.
- Command-Tab switches Spaces unexpectedly. The setting "When switching to an application, switch to a Space with open windows for the application" in System Settings, under Desktop & Dock, controls this. Turn it off if you do not want Space changes.
- Full-screen apps. A full-screen app lives in its own Space. Command-Tab still lists it, and selecting it slides you to that Space.
- Second display. With "Displays have separate Spaces" on, each display keeps its own set of Spaces. Selecting an app can bring a window forward on the other display rather than the one you are looking at.
- The Dock hides and you click the wrong place. With auto-hide on, the Dock appears only when your pointer touches the screen edge. Moving too fast can miss it. Command-Tab does not depend on the Dock at all, so it still works when the Dock is hidden or unresponsive.
- Muscle-memory clash. Some remote desktop and virtual machine apps capture Command-Tab and pass it to the guest system. Check that app's keyboard settings if the switcher stops responding while it is frontmost.
Putting it together
Suppose you are writing in a text editor, a browser, and a chat app. You are in the editor and need the browser, then want to return.
- Hold Command and tap Tab until the browser is highlighted. Release Command.
- Read what you need.
- Press Command-Tab once, and release. You are back in the editor.
If the browser has three windows and you need the second one, press Command-` after switching to it. You can also right-click the browser icon in the Dock and choose the window by name.
Exercise
You press Command-Tab, hold Command, and the switcher is open with Mail highlighted. You do not want to switch after all. What keys close the panel without changing apps, and how does this differ from pressing Command-Q at this moment?
Show answer
Press Escape while still holding Command to cancel. The current app stays frontmost. Pressing Q (Command is already held, so this is Command-Q in effect) would quit Mail instead, so Escape is the safe way out.
Exercise
You click a running app's Dock icon, but nothing seems to come forward and the app's windows are not visible. Name two possible causes and one way to check each.
Show answer
First, the app's windows may be minimized, so look at the right side of the Dock near the Trash and click the minimized thumbnail. Second, the app's windows may be on another Space, so open Mission Control or check the Desktop & Dock setting that switches to a Space with open windows. Hidden windows (Command-H) are a third cause, fixed by selecting the app again.