Sub topic 4
Creating, switching and removing Spaces
This chapter assumes you know what a Space is and how Mission Control shows your windows. Both were covered in earlier chapters. You should also be comfortable with System Settings and with the modifier keys Control, Option, Command and Fn.
Here you will learn how to add a Space, move between Spaces, reorder them and delete them. You will also learn why shortcuts sometimes stop working.
The lifecycle of a Space
A Space is a virtual desktop that holds its own set of windows. Each Space goes through four stages: creation, use, reordering and removal. Full-screen apps create Spaces of their own, and those follow slightly different rules.
Creating a Space
Open Mission Control by pressing Control-Up Arrow, pressing the Mission Control key (F3 on many keyboards), or swiping up with three or four fingers on a trackpad. The Spaces bar runs along the top of the screen and shows one thumbnail per Space on that display.
There are three ways to add a Space:
- Move the pointer to the top-right corner of the Spaces bar and click the + button that appears.
- Drag a window from the Mission Control view onto the + button. The new Space is created and the window is moved into it.
- Open a window in full-screen mode. macOS makes a Space for it automatically. This Space is a special type, covered below.
New Spaces are named Desktop 1, Desktop 2 and so on, in order. macOS does not let you rename a Space.
A display can hold at most 16 Spaces. When you reach that limit, the + button disappears. Remove a Space you no longer need to get it back.
You can also open Mission Control from the terminal. This is useful in scripts, or to check that the app responds when a shortcut does not.
open -a "Mission Control"Switching between Spaces
You have four ways to switch. Which one is best depends on how many Spaces you use.
| Method | How | Notes |
|---|---|---|
| Trackpad swipe | Swipe left or right with three or four fingers | Set the finger count in System Settings > Trackpad > More Gestures. The setting is called "Swipe between full-screen applications". |
| Arrow shortcuts | Control-Left Arrow or Control-Right Arrow | On by default. They stop at the first and last Space and do not wrap around. |
| Number shortcuts | Control-1, Control-2 and so on | Off by default. You must turn them on, and the numbered Space must exist. |
| Mission Control | Open it and click a thumbnail | Slowest, but it shows what is in each Space. |
To turn on the number shortcuts, open System Settings > Keyboard > Keyboard Shortcuts > Mission Control. Expand "Mission Control" and tick the "Switch to Desktop N" entries you want. The list only includes Spaces that currently exist.
The number shortcuts depend on the order of your Spaces. If macOS reorders them behind your back, Control-2 will not take you to the same place twice. The next sections cover that problem.
Moving a window while switching
There are two ways to carry a window to another Space:
- Hold the window by its title bar, then press Control-Left Arrow or Control-Right Arrow. The window travels with you.
- In Mission Control, drag the window onto a thumbnail in the Spaces bar.
Dragging a window to the left or right edge of the screen and holding it there also switches Space on many setups. It is slower and less predictable than the keyboard method.
Switching through the Dock and Command-Tab
Choosing an app from the Dock or Command-Tab can also change Space. By default, macOS jumps to a Space that already has a window of that app. This is controlled by "When switching to an application, switch to a Space with open windows for the application" in System Settings > Desktop & Dock, under Mission Control.
This setting often surprises people who feel the screen jumped for no reason. Turn it off if you want the app's window to open in your current Space instead.
Reordering Spaces
In Mission Control, drag a thumbnail left or right in the Spaces bar. Other thumbnails slide aside, and the numbering follows the new order.
macOS has a setting that can undo your work here. "Automatically rearrange Spaces based on most recent use" is on by default. With it on, the Space you used last moves to the front. This is the main reason Control-number shortcuts feel random.
Turn it off in System Settings > Desktop & Dock > Mission Control. You can also use the terminal. First check the current value:
defaults read com.apple.dock mru-spacesIf you never changed the setting, the key does not exist and the command prints an error saying the domain/default pair does not exist. That means the system default, which is on, is in effect.
To turn it off and restart the Dock so the change takes effect:
defaults write com.apple.dock mru-spaces -bool false
killall DockTo go back to the system default, delete the override:
defaults delete com.apple.dock mru-spaces
killall DockRemoving a Space
To remove a regular Space:
- Open Mission Control.
- Hover over the thumbnail of the Space you want to remove. A close button (an x) appears in its corner.
- Click the close button.
macOS does not close any windows when you do this. Windows in the removed Space are moved into another Space, normally the one next to it. You may then find many windows crowded together in one Space, so tidy up afterward.
You cannot remove the last remaining Space on a display. At least one Desktop Space always stays.
Removing full-screen Spaces
A Space created by a full-screen app is different. It has no close button of its own. It disappears when you leave full-screen mode, which you can do in these ways:
- Press Control-Command-F.
- Move the pointer to the top of the screen to show the menu bar, then click the green button.
- Press Escape in apps that support it, such as most video players.
When the window leaves full-screen, the Space disappears. The window itself goes back to the Desktop Space where you first opened it. If you quit the app, the Space also disappears.
Common problems
The following table lists the situations that cause the most confusion, with the usual cause of each.
| Symptom | Likely cause | Fix |
|---|---|---|
| Control-3 does nothing | The shortcut is off, or only two Spaces exist | Enable "Switch to Desktop 3" and create the Space |
| Control-Left Arrow does nothing | The shortcut was turned off, or another app uses the same keys | Check Keyboard Shortcuts > Mission Control and look for conflicts |
| Spaces keep changing places | Automatic rearranging is on | Turn off "Automatically rearrange Spaces based on most recent use" |
| The screen jumps to another Space when you open an app | The "switch to a Space with open windows" setting is on | Turn it off in Desktop & Dock |
| The **+** button is missing | You are at 16 Spaces | Remove one |
| A Space has no close button | It is a full-screen Space | Exit full-screen mode |
| Gestures do nothing | Gestures are off, or you are using a mouse | Check Trackpad > More Gestures |
A note on multiple displays
If "Displays have separate Spaces" is on, each display has its own Spaces bar, its own limit of 16 and its own numbering. The Control-number shortcuts then apply to the display that has focus. A later chapter covers this setting in full.
Putting it together
A common setup is a small, fixed layout. Use three Spaces, and turn off automatic rearranging so that the numbers stay put. Turn on Control-1, Control-2 and Control-3, and assign each Space a purpose, such as a browser, an editor and a communication app. Because the order never changes, your fingers learn it.
Exercise
You set up Control-1, Control-2 and Control-3 to reach three Spaces. After a day of use, Control-2 takes you to different Spaces at different times. What is the likely cause, and how do you fix it from the terminal?
Show answer
"Automatically rearrange Spaces based on most recent use" is on, so macOS moves recently used Spaces to the front and changes their numbers. Turn it off with defaults write com.apple.dock mru-spaces -bool false, then run killall Dock so the Dock restarts and the change takes effect. You can also clear it in System Settings > Desktop & Dock > Mission Control.
Exercise
You click a Space's thumbnail in Mission Control, but it has no close button. You also have a video playing in it. What kind of Space is it, and how do you get rid of it?
Show answer
It is a full-screen Space, created when an app went full-screen. It has no close button because it is tied to that app's window. Leave full-screen mode with Control-Command-F or the green button in the menu bar, or quit the app. The Space then disappears and the window returns to the Desktop Space it came from.