Sub topic 3
Keyboard shortcuts for tabs
This chapter assumes you can open Safari, load a page, and open and close tabs with the mouse. Shortcuts speed up the same actions, so you don't need any new concepts. Menu names and defaults can vary slightly between macOS versions, so check the Safari menu bar if a shortcut doesn't respond.
Why learn them
Opening, switching, and closing tabs are things you do dozens of times a day. Each shortcut saves a trip to the pointer. The main benefit is that your hands stay on the keyboard while you move through pages.
The core shortcuts
The symbols are Command (⌘), Shift (⇧), Option (⌥), and Control (⌃).
| Action | Shortcut |
|---|---|
| Open a new tab | ⌘T |
| Close the current tab | ⌘W |
| Reopen the last closed tab | ⇧⌘T |
| Go to the next tab | ⇧⌘] |
| Go to the previous tab | ⇧⌘[ |
| Show Tab Overview | ⇧⌘\ |
| Show or hide the sidebar | ⇧⌘L |
| Jump to the Smart Search field | ⌘L |
You can also press ⌃Tab and ⌃⇧Tab to cycle through tabs in recent versions of Safari. If they do nothing on your Mac, use the bracket shortcuts above.
Opening links in tabs
Holding a key while you click a link changes where it opens:
- ⌘-click opens the link in a new tab and leaves you on the current page.
- ⇧⌘-click opens the link in a new tab and switches to it.
Which of these switches you to the new tab depends on a setting. In Safari Settings, on the Tabs pane, look for the option that makes a new tab active when it opens. If the two clicks behave the opposite way from what is described here, that option is likely turned on.
Jumping to a tab by position
⌘1 through ⌘9 can select the tab in that position, counting from the left. This only works when it is enabled in Safari Settings, on the Tabs pane, under the option that uses ⌘1 through ⌘9 to switch tabs. When the option is off, those keys open items from your Favorites instead. Pinned tabs count first, so with two pinned tabs, ⌘3 selects the first regular tab.
Recovering from mistakes
⇧⌘T is the shortcut worth memorizing first. Closing a tab by accident is common, and this brings back the most recent one. Pressing it repeatedly reopens earlier closed tabs in reverse order.
To close everything except the tab you are on, hold Option and click the close button on that tab. Safari asks no confirmation, but ⇧⌘T can bring the closed tabs back one by one.
A typical flow
The diagram shows a common sequence of shortcuts when researching a topic.
Common errors
- Pressing ⌘W on the last tab in a window closes the window. Use ⇧⌘T to restore it.
- Using ⌘1 to ⌘9 and getting a Favorites page instead of a tab means the option is off in Settings.
- Typing a shortcut while a web page text box has focus can send keys to the page. Click outside the box first if a shortcut seems ignored.
Exercise
You middle-clicked nothing, but you pressed ⌘W and lost a research tab. You then want to open several links from a results page without leaving it. Which two shortcuts or actions do you use?
Show answer
Press ⇧⌘T to reopen the closed tab. Then ⌘-click each link, which opens it in a new tab without switching away from the results page.
Exercise
You have two pinned tabs and several regular tabs. ⌘3 opens a Favorites page instead of selecting the first regular tab. What is the likely cause?
Show answer
The Safari Settings option for using ⌘1 through ⌘9 to switch tabs is turned off. When it is on, ⌘3 selects the third tab from the left, which is the first regular tab after the two pinned ones.