# Mac shortcuts

A short list of keyboard shortcuts and window tricks that make everyday computer work faster. Learn a few at a time. Each one you commit to muscle memory saves you a hundred trips to the mouse.

Using Windows? See [Windows shortcuts](windows-shortcuts.guide.md).

---

## The keys

Mac shortcuts are built around the **Command** key (⌘), not Control. Menus show the symbols, so it helps to know them.

| Symbol | Key                                                  |
| :----- | :--------------------------------------------------- |
| ⌘      | **Command**, next to the space bar                   |
| ⌥      | **Option** (also called Alt)                         |
| ⌃      | **Control**                                          |
| ⇧      | **Shift**                                            |
| 🌐 / fn | **Globe** or **fn**, bottom-left corner              |
| ⌫      | **Delete** (the backspace key)                       |

---

## Learn these first

| What you want              | Press                                   |
| :------------------------- | :-------------------------------------- |
| Copy                       | **Command + C**                         |
| Paste                      | **Command + V**                         |
| Cut                        | **Command + X**                         |
| Undo                       | **Command + Z**                         |
| Redo                       | **Shift + Command + Z**                 |
| Select all                 | **Command + A**                         |
| Save                       | **Command + S**                         |
| Find on this page          | **Command + F**                         |
| Switch between apps        | **Command + Tab** (see below)           |
| Search your Mac (Spotlight) | **Command + Space**, then type          |

**Paste without formatting:** **Shift + Option + Command + V**. Use it when pasting from a web page or a chat into a document so you do not drag along fonts and colors.

---

## Switching between apps and windows

**Command + Tab** is the fastest way to move between apps.

- Hold **Command**, then tap **Tab** to step through your open apps. Let go of Command to switch.
- Hold **Command** and tap **Tab** once to jump straight back to the app you were just in.
- Keep holding Command and press **Q** on a highlighted app to quit it.

| What you want                             | Press                          |
| :---------------------------------------- | :----------------------------- |
| Switch to another app                     | **Command + Tab**              |
| Switch between windows of the *same* app  | **Command + `** (the key above Tab) |
| See every open window at once             | **Control + Up arrow** or swipe up with three fingers |
| Hide the current app                      | **Command + H**                |
| Minimize the window to the Dock           | **Command + M**                |
| Close the window or tab                   | **Command + W**                |
| Quit the app entirely                     | **Command + Q**                |
| Open a new window                         | **Command + N**                |
| Force a frozen app to quit                | **Option + Command + Esc**     |

**Command + W** closes the window. **Command + Q** quits the whole app. They are next to each other on the keyboard, so double-check before you press Q.

---

## Side-by-side windows

You will often want two things visible at once: a chat with an AI model on one side and your editor or browser on the other.

**With the mouse:**

1. Drag a window to the left or right edge of the screen until you see an outline, then let go. It fills that half.
2. Do the same with a second window on the other side.

Or hover your pointer over the **green button** in the top-left corner of a window and pick **Left** or **Right** from the menu that appears.

**With the keyboard** (macOS Sequoia or newer):

| What you want                 | Press                                   |
| :---------------------------- | :-------------------------------------- |
| Fill the left half            | **Globe + Control + Left arrow**        |
| Fill the right half           | **Globe + Control + Right arrow**       |
| Fill the whole screen         | **Globe + Control + F**                 |
| Put it back where it was      | **Globe + Control + R**                 |

You can also use the **Window** menu at the top of the screen → **Move & Resize**.

If you want to move a window from one side to the other, press the opposite shortcut. To go full screen (hides the menu bar), click the green button once. Press the green button again, or **Esc**, to leave.

---

## Editing text

These work in almost every app: browsers, chat windows, Zed, Cursor, TextEdit.

| What you want                    | Press                                   |
| :------------------------------- | :-------------------------------------- |
| Jump to the start or end of the line | **Command + Left / Right arrow**   |
| Jump one word at a time          | **Option + Left / Right arrow**         |
| Jump to the top or bottom        | **Command + Up / Down arrow**           |
| Select while you jump            | Hold **Shift** with any of the above    |
| Delete the previous word         | **Option + Delete**                     |
| Delete back to the start of the line | **Command + Delete**                |
| Select a word                    | Double-click it                         |
| Select a whole paragraph         | Triple-click it                         |
| Insert an emoji                  | **Globe** key, or **Control + Command + Space** |

**Selecting text to copy:** click where you want to start, then hold **Shift** and click where you want to end. Everything in between is selected. This beats dragging across a long chat response.

---

## The browser

These work in Chrome, Safari, Arc, and Edge.

| What you want                    | Press                                   |
| :------------------------------- | :-------------------------------------- |
| Go to the address bar            | **Command + L**, then type              |
| New tab                          | **Command + T**                         |
| Close the tab                    | **Command + W**                         |
| Reopen the tab you just closed   | **Shift + Command + T**                 |
| Move between tabs                | **Control + Tab** and **Control + Shift + Tab** |
| Jump to a specific tab           | **Command + 1** through **Command + 9** |
| Reload the page                  | **Command + R**                         |
| Zoom in, out, or reset           | **Command + Plus**, **Command + Minus**, **Command + 0** |
| Find text on the page            | **Command + F**                         |
| Open a link in a new tab         | Hold **Command** and click the link     |
| Private (incognito) window       | **Shift + Command + N**                 |
| Scroll down one screen           | **Space bar**                           |

---

## Finder and files

| What you want                    | Press                                   |
| :------------------------------- | :-------------------------------------- |
| Open Finder                      | Click the smiling face in the Dock, or **Command + Tab** to it |
| New folder                       | **Shift + Command + N**                 |
| Rename the selected file         | **Return**, type the name, **Return**   |
| Open the selected file           | **Command + Down arrow** or **Command + O** |
| Go up to the parent folder       | **Command + Up arrow**                  |
| Preview a file without opening it | **Space bar**                          |
| Move to Trash                    | **Command + Delete**                    |
| Duplicate                        | **Command + D**                         |
| Get info (size, kind, location)  | **Command + I**                         |
| Show hidden files                | **Shift + Command + .**                 |

**Pressing Return does not open a file.** It renames it. To open, double-click or press **Command + Down arrow**.

**See file extensions.** In Finder, choose **Finder → Settings → Advanced** and check **Show all filename extensions**. This course cares about the difference between `notes.md`, `notes.txt`, and `notes.html`, so keep this on.

**Find where a file lives.** Select it and press **Command + I**, then look at **Where**. Or right-click the filename in the window's title bar to see the full path.

---

## Everything else

| What you want                    | Press                                   |
| :------------------------------- | :-------------------------------------- |
| Take a screenshot                | **Shift + Command + 4** — see [Take a screenshot](take-a-screenshot.guide.md) |
| Lock the screen                  | **Control + Command + Q**               |
| Open the app's settings          | **Command + ,**                         |
| Open Terminal                    | **Command + Space**, type `terminal`, **Return** |
| Zip a folder                     | Right-click → **Compress** — see [Create a zip folder](create-zip-folder.guide.md) |

---

## Common mistakes

- **Using Control instead of Command.** On a Mac, Control + C does nothing useful in most apps. Copy is Command + C.
- **Quitting instead of closing.** Command + Q closes every window and quits the app. Command + W closes just the one window or tab.
- **Losing a window.** If a window vanished, it is probably hidden (Command + H) or minimized. Command + Tab to the app and it comes back, or click the app in the Dock.
- **The app is open but there is no window.** Press **Command + N** to open a new one.
- **Shortcut does nothing.** Most shortcuts only act on the app that is in front. Click the window first, then press the keys.
