Skip to content

Instantly share code, notes, and snippets.

@marioblas
Last active August 29, 2015 14:10
Show Gist options
  • Save marioblas/2e62409d9806d023cd61 to your computer and use it in GitHub Desktop.
Save marioblas/2e62409d9806d023cd61 to your computer and use it in GitHub Desktop.
Sublime Text cheat sheet

Sublime Text cheat sheet

General

Command Description
⌘⇧P Command palette
⌘KB Show/hide sidebar
⌃0 Focus on sidebar

Navigation/Goto Anywhere

Command Description
⌘P Open file by name
⌘R Go to symbol
⌃G Go to line

Find/Replace

Command Description
⌘F Find
⌘⌥F Replace
⌘⇧F Find in files
⌘E Use selection for find
⌘⇧E Use selection for replace

Editing

Command Description
⌘⇧V Paste and indent
⌘Y Redo
⌘Click Create multiple cursors
Single selection
⌘↩ Insert line after
⌘⇧↩ Insert line before
⌘⌃↑ Move line/selection up
⌘⌃↓ Move line/selection down
⌃M Jump to closing braces, parentheses or brackets
⌃⇧M Select all content of the current braces, parentheses or brackets
⌘L Select line (repeat to select next)
⌘D Select word (repeat to select other occurrences for multiple editing...)
⌘⌃G Multi-select editing (all instances)
⌘⇧L Split selection into lines
⌘X Delete line
⌘KK Delete from cursor to end of line
⌘⌫ Detele from cursor to start of line
⌘⇧D Duplicate line(s)
⌘J Join lines
⌘] Indent current line(s)
⌘[ Unindent current line(s)
F5 Sort lines
⌃F5 Sort lines (case sensitive)
⌘/ Comment current line/selection
⌘⌥/ Block comment
⌃Space Show completions

Tabs

Command Description
⌘[1,2,3…] Select tab
⌘⇧T Reopen last closed tab

Split

Command Description
⌘⌥1 Layout single
⌘⌥[2,3,4] 2, 3 or 4 columns
⌘⌥⇧[2,3] 2 or 3 rows
⌘⌥5 Grid (4 groups)
⌃[1,2,3,4] Focus group
⌃⇧[1,2,3,4] Move file to group

Bookmarks

Command Description
⌘F2 Toggle bookmark
F2 Next bookmark
⇧F2 Previous bookmark
⌘⇧F2 Clear bookmarks

Text manipulation

Command Description
⌘KU To uppercase
⌘KL To lowercase

XML/HTML

Command Description
⌘⌥ . Close tag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment