Skip to content

Instantly share code, notes, and snippets.

@dufferzafar
Created November 27, 2013 09:50
Show Gist options
  • Save dufferzafar/7673209 to your computer and use it in GitHub Desktop.
Save dufferzafar/7673209 to your computer and use it in GitHub Desktop.
Selections and Multiple Cursors in Sublime Text 3

Selections and Multiple Cursors in Sublime Text 3

A handy list of selection shortcuts.

Here are the official docs: Keyboard and Mouse

Mouse

Building blocks:

  • Add to selection: Ctrl
  • Subtract from selection: Alt
  • Linear selection: Left Click
  • Block selection: Shift + Right Click

Combine as you see fit. For example:

  • Add to selection: Ctrl + Left Click (and optionally drag)
  • Subtract from select: Alt + Left Click and drag (this combination doesn't work in Sublime Text 3, but supposedly it works in 2)
  • Add block selection: Ctrl + Shift + Right Click (and drag)
  • Subtract block selection: Alt + Shift + Right Click (and drag)

Keyboard

Windows/Linux

  • Return to single selection mode: Esc
  • Extend selection upward/downward at all carets: Ctrl + Alt + Up/Down
  • Extend selection leftward/rightward at all carets: Shift + Left/Right
  • Move all carets up/down/left/right, and clear selection: Up/Down/Left/Right
  • Undo the last selection motion: Ctrl + U
  • Add next occurrence of selected text to selection: Ctrl + D
  • Add all occurrences of the selected text to the selection: Alt + F3
  • Rotate between occurrences of selected text (single selection): Ctrl + F3
  • Turn a single linear selection into a block selection, with a caret at the end of the selected text in each line: Ctrl + Shift + L

Mac OS X

  • Return to single selection mode: Esc
  • Extend selection upward/downward at all carets: ^⇧↑, ^⇧↓
  • Extend selection leftward/rightward at all carets: ⇧←/⇧→
  • Move all carets up/down/left/right, and clear selection: ←, ↑, ↓, →
  • Undo the last selection motion: ⌘U
  • Add next occurrence of selected text to selection: ⌘D
  • Add all occurrences of the selected text to the selection: ^⌘G
  • Rotate between occurrences of selected text (single selection): not really sure
  • Turn a single linear selection into a block selection, with a caret at the end of the selected text in each line: ⇧⌘L
@AmjadHD
Copy link

AmjadHD commented Nov 2, 2017

hi, i wrote a plugin that solves the subtract selection bug see it here: https://github.com/AmjadHD/cancel_selection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment