umma.dev

VS Code Shortcuts

TypeExplanationMacWindows
GeneralShow command paletteβ‡§βŒ˜P, F1Ctrl+Shift+P, F1
Quick Open and navigate to file⌘PCtrl+P
New Windowβ‡§βŒ˜NCtrl+Shift+N
Close Window⌘WCtrl+Shift+W
User Settings⌘,Ctrl+
Keyboard shortcuts⌘K ⌘SCtrl+K Ctrl+S
Basic EditingCut line (empty selection)⌘XCtrl+X
Copy line (empty selection)⌘CCtrl+C
Move line up/downβŒ₯↓ / βŒ₯↑Alt+ ↑ / ↓
Copy line up/down⇧βŒ₯↓ / ⇧βŒ₯↑Shift+Alt + ↓ / ↑
Delete lineβ‡§βŒ˜K
Insert line belowCtrl+Enter
Insert line aboveCtrl+Shift+Enter
Insert line below/above⌘Enter / β‡§βŒ˜Enter
Jump to matching bracketβ‡§βŒ˜\Ctrl+Shift+\
Indent/outdent line⌘] / ⌘[Ctrl+] / [
Go to beginning/end of lineHome / EndHome / End
Go to beginning of fileCtrl+Home
Go to end of fileCtrl+End
Go to beginning/end of fileβŒ˜β†‘ / βŒ˜β†“
Scroll line up/downβŒƒPgUp / βŒƒPgDnCtrl+↑ / ↓
Scroll page up/down⌘PgUp /⌘PgDnAlt+PgUp / PgDn
Fold regionCtrl+Shift+[
Unfold regionCtrl+Shift+]
Fold/unfold regionβŒ₯⌘[ / βŒ₯⌘]
Fold/unfold all subregions⌘K ⌘[ / ⌘K ⌘]
Fold all subregionsCtrl+K Ctrl+[
Unfold all subregionsCtrl+K Ctrl+]
Fold all regionsCtrl+K Ctrl+0
Unfold all regionsCtrl+K Ctrl+J
Fold/unfold all regions⌘K ⌘0 / ⌘K ⌘J
Add line comment⌘K ⌘CCtrl+K Ctrl+C
Remove line comment⌘K ⌘UCtrl+K Ctrl+U
Toggle line commend⌘/Ctrl+/
Toggle block comment⇧βŒ₯AShift+Alt+A
Toggle word wrapβŒ₯ZAlt+Z
Multi-cursor and selectionInsert cursorβŒ₯ + clickAlt+Click
Insert cursor aboveβŒ₯βŒ˜β†‘
Insert cursor belowβŒ₯βŒ˜β†“
Insert cursor above/belowCtrl+Alt+ ↑ / ↓
Undo last cursor operation⌘UCtrl+U
Insert cursor at end of each line selected⇧βŒ₯IShift+Alt+I
Select current line⌘LCtrl+L
Select all occurrences of current selectionβ‡§βŒ˜LCtrl+Shift+L
Select all occurrences of current word⌘F2Ctrl+F2
Expand selectionShift+Alt+β†’
Shrink selectionShift+Alt+←
Expand/shrink selectionβŒƒβ‡§βŒ˜β†’ / ←
Column (box) selection⇧βŒ₯ + drag mouseShift+Alt + (drag mouse)
Column (box) selection up/down⇧βŒ₯βŒ˜β†‘ / ↓Ctrl+shift+Alt+ arrow key
Column (box) selection left/right⇧βŒ₯βŒ˜β† / β†’
Column (box) selection page up⇧βŒ₯⌘PgUp
Column (box) selection page down⇧βŒ₯⌘PgDn
Column (box) selection page up/downCtrl+Shift+Alt+PgUp/PgDn
Search and replaceFind⌘FCtrl+F
ReplaceβŒ₯⌘FCtrl+H
Find next/previous⌘G / β‡§βŒ˜GF3 / Shift+F3
Select all occurrences of Find matchβŒ₯EnterAlt+Enter
Add selection to next Find match⌘DCtrl+D
Move last selection to next Find match⌘K ⌘DCtrl+K Ctrl+D
Toggle case-sensitive / regex / whole wordAlt+C / R / W
Rich languages editingTrigger suggestionβŒƒSpace, ⌘ICtrl+Space, Ctrl+I
Trigger parameter hintsβ‡§βŒ˜SpaceCtrl+Shift+Space
Format document⇧βŒ₯FShift+Alt+F
Format selection⌘K ⌘FCtrl+K Ctrl+F
Go to DefinitionF12F12
Peek DefinitionβŒ₯F12Alt+F12
Open Definition to the side⌘K F12Ctrl+K F12
Quick Fix⌘.Ctrl+.
Show References⇧F12Shift+F12
Rename SymbolF2F2
Trim trailing whitespace⌘K ⌘XCtrl+K Ctrl+X
Change file language⌘K MCtrl+K M
NavigationShow all Symbols⌘TCtrl+T
Go to Lineβ€¦βŒƒGCtrl+G
Go to Fileβ€¦βŒ˜PCtrl+P
Go to Symbolβ€¦β‡§βŒ˜OCtrl+Shift+O
Show Problems panelβ‡§βŒ˜MCtrl+Shift+M
Go to next error or warningF8
Go to previous error or warningShift+F8
Go to next/previous error or warningF8 / ⇧F8
Navigate editor group historyβŒƒβ‡§TabCtrl+Shift+Tab
Go back/forwardβŒƒ- / βŒƒβ‡§-Alt+ ← / β†’
Toggle Tab moves focusβŒƒβ‡§MCtrl+M
Editor managementClose editor⌘WCtrl+F4, Ctrl+W
Close folder⌘K FCtrl+K F
Split editor⌘\Ctrl+\
Focus into 1st, 2nd and 3rd editor group⌘1 / ⌘2 / ⌘3Ctrl+ 1 / 2 / 3
Focus into previous/next editor group⌘K βŒ˜β† / ⌘K βŒ˜β†’Ctrl+K Ctrl+ ←/β†’
Move editor left/right⌘K β‡§βŒ˜β† / ⌘K β‡§βŒ˜β†’Ctrl+Shift+PgUp/PgDn
Move active editor group⌘K ← / ⌘K β†’Ctrl+K ← / β†’
File managementNew File⌘NCtrl+N
Open Fileβ€¦βŒ˜OCtrl+O
Save⌘SCtrl+S
Save Asβ€¦β‡§βŒ˜SCtrl+Shift+S
Save AllβŒ₯⌘SCtrl+K S
Close⌘WCtrl+F4
Close All⌘K ⌘WCtrl+K Ctrl+W
Reopen closed editorβ‡§βŒ˜TCtrl+Shift+T
Keep preview mode editor open⌘K EnterCtrl+K Enter
Open nextCtrl+Tab
Open previousCtrl+Shift+Tab
Open next / previousβŒƒTab / βŒƒβ‡§Tab
Copy path of active file⌘K PCtrl+K P
Reveal active file in Finder⌘K RCtrl+K R
Show active file in new window/instance⌘K OCtrl+K O
DisplayToggle full screenβŒƒβŒ˜FF11
Toggle editor layout (horizontal/vertical)βŒ₯⌘0Shift+Alt+0
Zoom in/out⌘= / β‡§βŒ˜-Ctrl+ = / -
Toggle Sidebar visibility⌘BCtrl+B
Show Explorer / Toggle focusβ‡§βŒ˜ECtrl+Shift+E
Show Searchβ‡§βŒ˜FCtrl+Shift+F
Show Source ControlβŒƒβ‡§GCtrl+Shift+G
Show Debugβ‡§βŒ˜DCtrl+Shift+D
Show Extensionsβ‡§βŒ˜XCtrl+Shift+X
Replace in filesβ‡§βŒ˜HCtrl+Shift+H
Toggle Search detailsβ‡§βŒ˜JCtrl+Shift+J
Show Output panelβ‡§βŒ˜UCtrl+Shift+U
Open Markdown previewβ‡§βŒ˜VCtrl+Shift+V
Open Markdown preview to the side⌘K VCtrl+K V
Zen Mode (Esc Esc to exit)⌘K ZCtrl+K Z
DebugToggle breakpointF9F9
Start/ContinueF5F5
Step into/ outF11 / ⇧F11F11 / Shift+F11
Step overF10F10
Stop⇧F5Shift+F5 Stop
Show hover⌘K ⌘ICtrl+K Ctrl+I
Integrated terminalShow integrated terminalβŒƒ`Ctrl+`
Create new terminalβŒƒβ‡§`Ctrl+Shift+`
Copy selection⌘CCtrl+C
Paste into active terminalCtrl+V
Scroll up/downβŒ˜β†‘ / ↓Ctrl+↑ / ↓
Scroll page up/downPgUp / PgDnShift+PgUp / PgDn
Scroll to top/bottom⌘Home / EndCtrl+Home / End