Skip to content

Instantly share code, notes, and snippets.

@kaanra
Last active March 12, 2023 08:05
Show Gist options
  • Save kaanra/8910364 to your computer and use it in GitHub Desktop.
Save kaanra/8910364 to your computer and use it in GitHub Desktop.
[Sublime Text Shortcuts] #sublime

Sublime Text Shortcuts


Selection

Command Key
Select a word. Command + D
Select all instances of a word. Select a code, line, or word first the hit this combo to select the others with the same instances. Command + Ctrl + G
Select a line. Command + L
Select the entire content within the document. Command + A
Select anything inside the bracket (which is useful when working with CSS or JavaScript) Ctrl + Command + M
Select a word, hit again to find and select the same word Command + D
Show Sublime Text Scope Ctrl+Shift+P

Window Pane and Tabs Moving

Command Key
Move to pane 1 ⌃ + 1
Move to pane 2 ⌃ + 2
Switch tab left/right ⌥ + CMD + → or ←

Editing

Command Key
Cut line ⌘ + X
Insert line after ⌘ + ↩
Insert line before ⌘ + ⇧ + ↩
Move line/selection up ⌘ + ⌃ + ↑
Move line/selection down ⌘ + ⌃ + ↓
Select line - Repeat to select next lines ⌘ + L
Select word - Repeat to select next occurrence ⌘ + D
Select all occurrences of current selection ⌃ + ⌘ + G
Extra cursor on the line above ⌃ + ⇧ + ↑
Extra cursor on the line below ⌃ + ⇧ + ↓
Jump to closing parentheses Repeat to jump to opening parentheses ⌃ + M
Select all contents of the current parentheses ⌃ + ⇧ + M
Move to beginning of line ⌃ + A
Move to beginning of text on line ⌘ + Left
Move to end of line ⌃ + E, ⌘ + Right
Delete from cursor to end of line ⌘ + K, ⌘ + K
Delete from cursor to start of line ⌘ + K + ⌫
Indent current line(s) ⌘ + ]
Un-indent current line(s) ⌘ + [
Duplicate line(s) ⌘ + ⇧ + D
Join line below to the end of the current line ⌘ + J
Comment/un-comment current line ⌘ + /
Block comment current selection ⌘ + ⌥ + /
Redo, or repeat last keyboard shortcut command ⌘ + Y
Paste and indent correctly ⌘ + ⇧ + V
Select next auto-complete suggestion ⌃ + Space
Soft undo; jumps to your last change before undoing change when repeated ⌃ + U
Column selection up ⌃ + ⇧ + Up
Column selection down ⌃ + ⇧ + Down
Wrap Selection in html tag ⌃ + ⇧ + W
Delete current line of cursor ⌃ + ⇧ + K
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment