Skip to content

Instantly share code, notes, and snippets.

@kaanra
Last active December 2, 2024 08:34
Show Gist options
  • Save kaanra/b3161d9d980e9e35a06e90c27b12fa7b to your computer and use it in GitHub Desktop.
Save kaanra/b3161d9d980e9e35a06e90c27b12fa7b to your computer and use it in GitHub Desktop.
[Visual Studio Code Keyboard Shortcuts] #vscode

VS Code Shortcuts


Extensions

Command Key
Align colon, arrow, comments (Better Align) Alt + A

Emmet

Command Key
Balance Outward ⌃ + ⌘ + /
Go to Matching Pair Ctrl + Shift + T
Go to Next Edit Point Ctrl + ⌥ + →
Go to Previous Edit Point Ctrl + ⌥ + ←
Wrap with Tag/Abbreviation ⌘ + ⌥ + '
Select Next Item Shift + ⌥ + .
Select Previous Item Shift + ⌥ + ,
Update tag Shift + Ctrl + '
Remove tag ⌘ + '

Selection

Command Key
Expand or shrink selection within block/brackets ⌃ + ⇧ + → or ←
Go to Symbol in Accessible View ⇧ + ⌘ + .
Go to Symbol ⇧ + ⌘ + O
Select a word. ⌘ + 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. ⌘ + Shift + L
Select a line. ⌘ + L

Multi-cursor

Command Key
Insert cursor ⌥ + click
Keyboard multi cursor Shift + ⌥ + ⌘ + ↑ or ↓
Column (box) selection Shift + ⌥ + drag mouse

Editing

Command Key
Delete line ⌘ + Shfit + K
Jump to matching bracket ⌘ + Shift + \
Move line/selection up ⌥ + ↑
Move line/selection down ⌥ + ↓
Toggle word wrap ⌥ + Z
Join Line ⌃ + J

Window Pane and Tabs Moving

Command Key
Focus Breadcrumb Shift + ⌘ + ;
Show Problem panel Shift + ⌘ + U
Split Editor Vertical ⌘ + \
Split Editor Down ⌘ + ⌃ + \
Move to pane 1 ⌃ + 1
Move to pane 2 ⌃ + 2
Focus Group Up/Down ⌘ + 1 or 2
Switch tab left/right ⌥ + ⌘ + → or ←
Move Editor into Next/Prev Group ⌃ + ⌘ + → or ←
Toggle Vertical/Horiztonal Editor Layout ⌥ + ⌘ + 0

Unconfirmed

Command Key
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