macOS has emacs-like shortcuts for text editing, but there’s little difference. Here are some frequently used shortcuts for everyday use. Note this document does not contain common shortcuts like copying or paste. If you are new to macOS, this Apple official document can tell you more.

👉 Try shortcuts in playground

System Version: macOS 11.6.1

Key Name Symbol
Command (or Cmd)
Option (or Alt)
Shift
Control (or Ctrl)

Move cursor

  • ⌃ + F: Move forward 1 character.
  • ⌃ + B: Move backward 1 character.
  • ⌃ + P: Move to previous line(upward).
  • ⌃ + N: Move to next line(downward).

  • ⌃ + A: Move to the beginning of paragraph.
  • ⌃ + E: Move to the end of paragraph.

  • ⌘ + Left: Move to the beginning of line.
  • ⌘ + Right: Move to the end of line.
  • ⌘ + Up: Move to the beginning of document.
  • ⌘ + Down: Move to the end of document.

  • ⌥ + Left: Move to previous word.
  • ⌥ + Right: Move to next word.

Delete and paste

  • ⌃ + D: Delete forward.
  • ⌃ + H: Delete backward.

  • ⌥ + Delete: Delete 1 word left of cursor.

  • ⌃ + K: Delete text from right of cursor to the line end.
  • ⌘ + Delete: Delete text from left of cursor to the line beginning.
  • ⌃ + Y: Paste text which deleted by ⌃ + K or ⌘ + Delete.

Select and swap

  • ⇧ + ⌘ + Left: Select text from cursor to the beginning of the line.
  • ⇧ + ⌘ + Right: Select text from cursor to the end of the line.
  • ⇧ + ⌥ + Left: Select 1 word left of cursor, this shortcuts can use more than 1 time.
  • ⇧ + ⌥ + Right: Select 1 word right of cursor, this shortcuts can use more than 1 time.
  • ⇧ + Left: Select 1 character left of cursor, this shortcuts can use more than 1 time.
  • ⇧ + Right: Select 1 character right of cursor, this shortcuts can use more than 1 time.

  • ⌃ + T: Swap 1 character between cursor, e.g. ie -> ei.

Playground

You can try shortcuts in text editor below, all change won’t be saved.