> Source URL: /resources/key-controls.macos.guide
# Key Controls Guide for MacOS

## General OS-level keyboard shortcuts

These shortcuts work in any app on your Mac.

- <Kbd>Cmd + C</Kbd>: Copy
- <Kbd>Cmd + V</Kbd>: Paste
- <Kbd>Cmd + X</Kbd>: Cut
- <Kbd>Cmd + Z</Kbd>: Undo
- <Kbd>Shift + Cmd + Z</Kbd>: Redo
- <Kbd>Cmd + A</Kbd>: Select All
- <Kbd>Cmd + S</Kbd>: Save
- <Kbd>Cmd + O</Kbd>: Open
- <Kbd>Cmd + N</Kbd>: New document or window
- <Kbd>Cmd + W</Kbd>: Close the current window
- <Kbd>Cmd + Q</Kbd>: Quit the current app
- <Kbd>Cmd + F</Kbd>: Find
- <Kbd>Cmd + P</Kbd>: Print
- <Kbd>Cmd + ,</Kbd>: Open app preferences/settings
- <Kbd>Cmd + Space</Kbd>: Open Spotlight search
- <Kbd>Shift + Cmd + 5</Kbd>: Screenshot and screen recording options

See the full list of macOS shortcuts on [Apple's support page](https://support.apple.com/en-us/102650).

## Window management shortcuts

These shortcuts help you navigate between apps and manage windows.

### Switching apps and windows

- <Kbd>Cmd + Tab</Kbd>: Switch between open apps
- <Kbd>Cmd + `</Kbd>: Switch between windows of the current app
- <Kbd>Cmd + M</Kbd>: Minimize the current window to the Dock
- <Kbd>Cmd + H</Kbd>: Hide the current app
- <Kbd>Opt + Cmd + H</Kbd>: Hide all other apps

### Full screen and Mission Control

- <Kbd>Ctrl + Cmd + F</Kbd>: Toggle full screen mode
- <Kbd>Ctrl + Up</Kbd> or <Kbd>F3</Kbd>: Open Mission Control (view all windows and desktops)
- <Kbd>Ctrl + Down</Kbd>: Show all windows of the current app

### Side-by-side window tiling

On macOS Sequoia (version 15) and later, you can tile windows using keyboard shortcuts:

- <Kbd>Globe + Ctrl + Left</Kbd>: Tile window to the left half of the screen
- <Kbd>Globe + Ctrl + Right</Kbd>: Tile window to the right half of the screen
- <Kbd>Globe + Ctrl + Up</Kbd>: Tile window to the top half of the screen
- <Kbd>Globe + Ctrl + Down</Kbd>: Tile window to the bottom half of the screen
- <Kbd>Globe + Ctrl + F</Kbd>: Fill the screen (maximize)
- <Kbd>Globe + Ctrl + C</Kbd>: Center the window
- <Kbd>Globe + Ctrl + R</Kbd>: Return to the previous window size

The Globe key is the <Kbd>Fn</Kbd> key on most Mac keyboards.

On earlier macOS versions, hold the green button in the top-left corner of any window to access tiling options, or use a third-party tool like [Rectangle](https://rectangleapp.com/).

## Text editing shortcuts

These shortcuts work in most text fields and editors on your Mac.

### Navigation

- <Kbd>Cmd + Left</Kbd>: Jump to the beginning of the line
- <Kbd>Cmd + Right</Kbd>: Jump to the end of the line
- <Kbd>Opt + Left</Kbd>: Jump to the previous word
- <Kbd>Opt + Right</Kbd>: Jump to the next word
- <Kbd>Cmd + Up</Kbd>: Jump to the beginning of the document
- <Kbd>Cmd + Down</Kbd>: Jump to the end of the document

### Selection

Add <Kbd>Shift</Kbd> to any navigation shortcut above to select text while moving. For example:

- <Kbd>Shift + Cmd + Left</Kbd>: Select from cursor to the beginning of the line
- <Kbd>Shift + Cmd + Right</Kbd>: Select from cursor to the end of the line
- <Kbd>Shift + Opt + Left</Kbd>: Select the previous word
- <Kbd>Shift + Opt + Right</Kbd>: Select the next word

### Deleting text

- <Kbd>Delete</Kbd>: Delete the character before the cursor
- <Kbd>Fn + Delete</Kbd>: Delete the character after the cursor (forward delete)
- <Kbd>Opt + Delete</Kbd>: Delete the word before the cursor
- <Kbd>Fn + Opt + Delete</Kbd>: Delete the word after the cursor

## Code editing shortcuts

These shortcuts work in Cursor and other VS Code-based editors.

### Essential editing

- <Kbd>Cmd + /</Kbd>: Comment or uncomment the selected lines
- <Kbd>Cmd + Shift + K</Kbd>: Delete the current line
- <Kbd>Opt + Up</Kbd>: Move the current line up
- <Kbd>Opt + Down</Kbd>: Move the current line down
- <Kbd>Shift + Opt + Up</Kbd>: Copy the current line up
- <Kbd>Shift + Opt + Down</Kbd>: Copy the current line down

### Find and replace

- <Kbd>Cmd + F</Kbd>: Find in the current file
- <Kbd>Opt + Cmd + F</Kbd>: Find and replace in the current file
- <Kbd>Cmd + Shift + F</Kbd>: Search across all files in the workspace
- <Kbd>Cmd + Shift + H</Kbd>: Find and replace across all files

### Multi-cursor and selection

- <Kbd>Cmd + D</Kbd>: Select the next occurrence of the current selection
- <Kbd>Cmd + Shift + L</Kbd>: Select all occurrences of the current selection
- <Kbd>Opt + Click</Kbd>: Add a cursor at the clicked location

### Navigation and panels

- <Kbd>Cmd + P</Kbd>: Quick open a file by name
- <Kbd>Cmd + Shift + P</Kbd>: Open the command palette
- <Kbd>Cmd + B</Kbd>: Toggle the sidebar
- <Kbd>Ctrl + `</Kbd>: Toggle the integrated terminal
- <Kbd>F12</Kbd>: Go to definition
- <Kbd>F2</Kbd>: Rename symbol

See a comprehensive, printable list in the [VS Code macOS keyboard shortcuts PDF](https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf).

## Cursor-specific shortcuts

These shortcuts are specific to Cursor's AI features.

### AI Chat and Composer

- <Kbd>Cmd + L</Kbd>: Open AI Chat
- <Kbd>Cmd + I</Kbd>: Open Composer (multi-file AI edits)
- <Kbd>Cmd + Shift + L</Kbd>: Add selected code to Chat as context

### Inline editing

- <Kbd>Cmd + K</Kbd>: Open inline edit prompt (works in editor and terminal)
- <Kbd>Cmd + Enter</Kbd>: Accept AI-generated changes
- <Kbd>Cmd + Backspace</Kbd>: Reject or cancel generation

### AI autocomplete

- <Kbd>Tab</Kbd>: Accept the autocomplete suggestion
- <Kbd>Cmd + Right</Kbd>: Accept only the next word of the suggestion

See more shortcuts in the [Cursor keyboard shortcuts documentation](https://docs.cursor.com/advanced/keyboard-shortcuts).


---

## Backlinks

The following sources link to this document:

- [MacOS](/resources/key-controls.guide.llm.md)
