# pro-tip: quick macOS text selection

i'm constantly working with code/text. below are a few macOS keyboard shortcuts i use all the time to speed up my work. these shortcuts can be applied to anywhere system wide where there is editable text. the icons next to the spelled out keyboard keys are how they appear on your keyboard symbolically.

  • move cursor position to next word boundary: option + right arrow (⌥ →)
  • move cursor position to previous word boundary: option + left arrow (⌥ ←)
  • select from cursor position to the next word boundary: shift + option + right arrow (shift ⌥ →)
  • select from cursor position to the previous word boundary: shift + option + left arrow (shift ⌥ ←)
  • select from cursor to end of line: shift + command + right arrow (shift ⌘ →)
  • select from cursor to beginning of line: shift + command + left arrow (shift ⌘ ←)
  • select from cursor to beginning of document: shift + cmd + up arrow (shift ⌘ ↑)
  • select from cursor to end of document: shift + cmd + down arrow (shift ⌘ ↓)
  • select from cursor to the line above: shift + up arrow (shift ↑)
  • select from cursor to the line below: shift + up arrow (shift ↓)

with the last two shortcuts (line by line selection), you can start with shift + up/down arrow, and then press the option (⌥) key to change to word boundary selection mid-selection.

my most common use is option + right/left arrow in conjunction with shift + option + right/left arrow since i'm constantly making typos.