macOS Cheatsheet

OS Shortcuts

  • ⌘ + space: Finder
  • ⌃ + ⌘ + Q: Lock screen/computer
  • ⌃ + ⌘ + V: Paste text without formatting
  • ⇧ + ⌘ + 3: Screenshot (saved in desktop)
  • ⇧ + ⌘ + 4: Screenshot draw region (saved in desktop)
  • Fn + Up/Down: Text scroll page up/down
  • Fn + Del: Text forward delete
  • ^ + ⌘ + Space: Insert emoji
  • ⌃ + ⌘ + F: Toggle full-screen
  • ⌥ + Left/Right: Go to next/previous word
  • ⌘ + Left/Right: Go to start/end of current line
  • ⌘ + Tab: Cycle through open apps
  • ⌘ + ` (backtick): Cycle through windows of the same app (when 2+ are open/running)
  • ⌃ + Tab: Cycle through open tabs (Chrome, VSCode, etc.)
  • ⌘ + Del: Delete a file

App Shortcuts

Chrome

  • ⌘ + R: Reload tab
  • ⌘ + W: Close tab
  • ⌘ + T: Open new tab

Google Meet

  • ⌘ + D: mute/un-mute microphone

Rectangle

My shortcuts:

  • ⌃ + ⌥ + Left: Move to left half
  • ⌃ + ⌥ + Right: Move to right half
  • ⌃ + ⌥ + ⌘ + Left: Move to previous display
  • ⌃ + ⌥ + ⌘ + Right: Move to next display
  • ⌃ + ⌥ + Enter: Maximize
  • ⌥ + ⌘ + -: Make window smaller
  • ⌥ + ⌘ + =: Make window bigger

Terminal

  • ⌃ + Tab: cycle tabs
  • ⌘ + num: switch to tab num
  • ⌃ + R: reverse search

Vim

  • Fix no colors: echo "syntax on" >> ~/.vimrc from a terminal

VSCode

  • ⌘ + F: Find text in open file
  • ⇧ + ⌘ + F: Find text in all project files
  • ⌘ + P: Find file
  • ⌃ + -: Go back
  • ⌃ + G: Go to (often, go to a specific line number)
  • ^ + Tab: Cycle through tabs (open files)

Fixes:

Symbols & Special Characters

  • : Shift
  • : Command
  • : Control
  • : Option
  • ⌥ + n, then n: ñ
  • ⌥ + n, then ⇧ + n: Ñ
  • ~ £ €
  • ⇾ ← → ⇽ ✅ ❌

Tools

  • caffeinate: Prevent system from sleeping, optionally waiting for a pid to finish.
  • Flushing DNS cache: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
  • Git: brew install git
  • Git zsh extras: The easiest way is to install Oh My Zsh, by default includes a git plugin.
  • iTerm2: A better terminal, fast and very customizable
    • I recommend to change the preset at SettingsProfilesKeys to the Natural Text Editing one
  • noTunes: Because who would ever want to disable Apple Music, you can't do it easily. This open-source tool allows you not only that, but also to set any other application as the default app for music
  • Rectangle: Allows decent moving and resizing of windows. Highly customizable
  • Tomito: Pomodoro timer. Free and without ads
macOS Cheatsheet page, written by Kartones