Skip to content

Instantly share code, notes, and snippets.

@opragel
Last active April 17, 2025 17:16
Show Gist options
  • Save opragel/a44ff0691c528014d4a58512bc96ec02 to your computer and use it in GitHub Desktop.
Save opragel/a44ff0691c528014d4a58512bc96ec02 to your computer and use it in GitHub Desktop.
macOS favorite keyboard shortcuts

macOS keyboard shortcut favorites

Legend

Command (or Cmd)  - ⌘
Control (or Ctrl) - ^
Option (or Alt)   - βŒ₯
Shift             - ⇧
Fn (Function)     - 🌐

Reference

General

  • 🌐 (Fn) or 🌐 (Fn) + E: Open Emoji picker
  • ^ (Ctrl) + A: Jump to beginning of line
  • ^ (Ctrl) + E: Jump to end of line
  • βŒ₯ (Option) + Left/Right: Jump to previous/next word
  • ⌘ (Cmd) + Tab: Switch applications
  • ⌘ (Cmd) + ⇧ (Shift) + Tab: Switch applications (backwards)
  • ⌘ (Cmd) + `: Switch windows of current application
  • ⌘ (Cmd) + ⇧ (Shift) + V: Paste text without formatting
  • ⌘ (Cmd) + A: Select all items/text
  • ⌘ (Cmd) + H: Hide windows of front app
  • ⌘ (Cmd) + M: Minimize windows of front app
  • ⌘ (Cmd) + βŒ₯ (Option) + Esc: Open force quit dialog
  • ⌘ (Cmd) + Space: Open Spotlight
  • ⌘ (Cmd) + ^ (Ctrl) + F: Fullscreen app
  • ⌘ (Cmd) + ⇧ (Shift) + 3: Full screen screenshot
  • ⌘ (Cmd) + ⇧ (Shift) + 4: Screenshot selection
  • ⌘ (Cmd) + ⇧ (Shift) + 5: Open screenshot dialog
  • ⌘ (Cmd) + ^ (Ctrl) + Q: Lock screen
  • ⌘ (Cmd) + βŒ₯ (Option) + D or 🌐 (Fn) + A: Show/hide dock
  • ⌘ (Cmd) + ,: Open settings for frontmost app
  • ⌘ (Cmd) + ^ (Ctrl) + Power button: Force restart, without prompting.
  • 🌐 (Fn) + Up Arrow: Page Up - Scroll up one page.
  • 🌐 (Fn) + Down Arrow: Page Down - Scroll down one page.
  • 🌐 (Fn) + Left Arrow: Home - Scroll to the beginning of a document.
  • 🌐 (Fn) + Right Arrow: End - Scroll to the end of a document.

Browser

  • ⌘ (Cmd) + T: New Tab
  • ⌘ (Cmd) + W: Close Tab
  • ⌘ (Cmd) + N: New Window
  • ⌘ (Cmd) + ⇧ (Shift) + W: Close Window
  • ⌘ (Cmd) + ⇧ (Shift) + T: Reopen last closed tab/window
  • ⌘ (Cmd) + R: Refresh page
  • Space or Page Down: Scroll down a screen
  • ⇧ (Shift) + Space or Page Up: Scroll up a screen
  • (Safari) ⌘ (Cmd) + ⇧ (Shift) + \ : Search tabs / open tab switcher, type tab you want and hit enter
  • (Chrome) ⌘ (Cmd) + ⇧ (Shift) + A: Search tabs / open tab switcher, type tab you want and hit enter
  • (Chrome) ⌘ (Cmd) + 1/2/3/4/n: Switch to tab number n
  • (Chrome) ⌘ (Cmd) + ⇧ (Shift) + N: Open new incognito window
  • (Chrome) ⌘ (Cmd) + ⇧ (Shift) + B: Show/hide bookmarks bar
  • (Chrome) ⌘ (Cmd) + L: Jump to URL bar

Finder

  • ⌘ (Cmd) + ⇧ (Shift) + G: Go to Folder shortcut
  • ⌘ (Cmd) + N: New Window
  • ⌘ (Cmd) + T: New Tab
  • ⌘ (Cmd) + O/down: Open file/folder
  • ⌘ (Cmd) + Delete: Delete file/folder
  • ⌘ (Cmd) + ⇧ (Shift) + N: New folder
  • ⌘ (Cmd) + Up: Navigate to enclosing/parent folder
  • ⌘ (Cmd) + I: Show file info
  • ⌘ (Cmd) + E: Eject selected disk/volume
  • ⌘ (Cmd) + βŒ₯ (Option) + V: Move files in Clipboard from original location to the current location (aka cut/paste, vs copy/paste)

Terminal

  • ⌘ (Cmd) + ⇧ (Shift) + A: Selects output of last terminal command
  • ⌘ (Cmd) + N: New window
  • ⌘ (Cmd) + T: New tab
  • ⌘ (Cmd) + L: Clear screen
  • ⌘ (Cmd) + D: Split terminal pane
  • ^ (Ctrl) + U: Delete the line
  • ^ (Ctrl) + K: Delete to end of line
  • ^ (Ctrl) + W: Delete backward to beginning of word
  • ^ (Ctrl) + C: Cancel command
  • ^ (Ctrl) + R: Search for a command
  • ^ (Ctrl) + D: Exit/log out of terminal
  • ^ (Ctrl) + S: Stop all output on screen
  • ^ (Ctrl) + Q: Resume output to screen
  • ^ (Ctrl) + Z: Suspend/stop running command. Resume with fg command for foreground or bg command for background.
  • βŒ₯ (Option) + Left/Right arrow key: jump forward/backward a word
  • βŒ₯ (Option) + mouse click: moves the cursor there, for easy command edits when you have a long command
  • [Command] !!: Repeat the last command
  • [Command] !n: Repeat the ntth command from history

Slack

  • ⌘ (Cmd) + K: Open quick switcher
  • ⌘ (Cmd) + ⇧ (Shift) + D: Show/hide left sidebar
  • ⌘ (Cmd) + G: Open search
  • ⌘ (Cmd) + ⇧ (Shift) + A: Show all unreads
  • Esc: Mark all messages in current conversation as read
  • ⇧ (Shift) + Esc: Clear all unread
  • E (when focused on message): Edit message

GitHub

  • S or /: Focus search bar
  • .: Opens repo or pull request in editor
  • t: Activate file finder
  • l: Jump to line in code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment