Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@AmjadHD 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
You can’t perform that action at this time.