Column/Block Selection (Editors)

Device

  • Mac
trackpad fn ⌃ control ⌥ option ⌘ command ⇧ shift
  • Rest one finger on the trackpad. Hold Shift + Option.
  • In VS Code (default macOS keymap), hold Shift-Option and drag for a column selection.
  • Lift your fingers. Release the modifier.
Speed 1.25×

Ready

Official documentation · VS Code docs

Movement & Result

1f Shift-Option-drag SEL Select text

Why it works

Editor defaults differ. In Visual Studio Code on Mac (default), ⇧⌥ + drag creates a rectangular selection. JetBrains IDEs often use ⌥ + drag—confirm in that editor’s keymap. Do not assume one chord for every IDE.

Sources
Open full demonstration ↗