Search icon

Shortcuts.design

VS Code Shortcuts

Visual Studio Code is the modern, open source and cross-platform text and code editor, the new hot kid on the block. Code editing. Redefined. Download Visual Studio Code via Code.visualstudio.com.

General
Show Command Palette⇧ ⌘ P, F1
Quick Open, Go to Fileβ€¦βŒ˜ P
New window/instance⇧ ⌘ N
Close window/instance⌘ W
User Settings⌘ ,
Keyboard Shortcuts⌘ K ⌘ S
Basic editing
Cut line (empty selection)⌘ X
Copy line (empty selection)⌘ C
Move line down/upβŒ₯ ↓ / βŒ₯ ↑
Copy line down/up⇧ βŒ₯ ↓ / ⇧ βŒ₯ ↑
Delete line⇧ ⌘ K
Insert line below/above⌘ ↩ / ⇧ ⌘ ↩
Jump to matching bracket⇧ ⌘ \
Indent/outdent line⌘ ] / ⌘ [
Go to beginning/end of lineHome / End
Go to beginning/end of file⌘ ↑ / ⌘ ↓
Scroll line up/downβŒƒ PgUp / βŒƒ PgDn
Scroll page up/down⌘ PgUp /⌘ PgDn
Fold/unfold regionβŒ₯ ⌘ [ / βŒ₯ ⌘ ]
Fold/unfold all subregions⌘ K ⌘ [ / ⌘ K ⌘ ]
Fold/unfold all regions⌘ K ⌘ 0 / ⌘ K ⌘ J
Add line comment⌘ K ⌘ C
Remove line comment⌘ K ⌘ U
Toggle line comment⌘ /
Toggle block comment⇧ βŒ₯ A
Toggle word wrapβŒ₯ Z
Rich language editing
Trigger suggestionβŒƒ Space
Trigger parameter hints⇧ ⌘ Space
Format document⇧ βŒ₯ F
Format selection⌘ K ⌘ F
Go to DefinitionF12
Peek DefinitionβŒ₯ F12
Open Definition to the side⌘ K F12
Quick Fix⌘ .
Show References⇧ F12
Rename SymbolF2
Trim trailing whitespace⌘ K ⌘ X
Change file language⌘ K M
Show all Symbols⌘ T
Go to Line...βŒƒ G
Go to File...⌘ P
Go to Symbol...⇧ ⌘ O
Show Problems panel⇧ ⌘ M
Go to next/previous error or warningF8 / ⇧ F8
Navigate editor group historyβŒƒ ⇧ Tab
Go back/forwardβŒƒ - / βŒƒ ⇧ -
Toggle Tab moves focusβŒƒ ⇧ M
Editor management
Close editor⌘ W
Close folder⌘ K F
Split editor⌘ \
Focus into 1st, 2nd, 3rd editor group⌘ 1 / ⌘ 2 / ⌘ 3
Focus into previous/next editor group⌘ K ⌘ ← / ⌘ K ⌘ β†’
Move editor left/right⌘ K ⇧ ⌘ ← / ⌘ K ⇧ ⌘ β†’
Move active editor group⌘ K ← / ⌘ K β†’
Search and replace
Find⌘ F
ReplaceβŒ₯ ⌘ F
Find next/previous⌘ G / ⇧ ⌘ G
Select all occurrences of Find matchβŒ₯ ↩
Add selection to next Find match⌘ D
Move last selection to next Find match⌘ K ⌘ D
Display
Toggle full screenβŒƒ ⌘ F
Toggle editor layout (horizontal/vertical)βŒ₯ ⌘ 0
Zoom in/out⌘ = / ⇧ ⌘ -
Toggle Sidebar visibility⌘ B
Show Explorer / Toggle focus⇧ ⌘ E
Show Search⇧ ⌘ F
Show Source ControlβŒƒ ⇧ G
Show Debug⇧ ⌘ D
Show Extensions⇧ ⌘ X
Replace in files⇧ ⌘ H
Toggle Search details⇧ ⌘ J
Show Output panel⇧ ⌘ U
Open Markdown preview⇧ ⌘ V
Open Markdown preview to the side⌘ K V
Zen Mode (Esc Esc to exit)⌘ K Z
File management
New File⌘ N
Open File...⌘ O
Save⌘ S
Save As...⇧ ⌘ S
Save AllβŒ₯ ⌘ S
Close⌘ W
Close All⌘ K ⌘ W
Reopen closed editor⇧ ⌘ T
Keep preview mode editor open⌘ K ↩
Open next / previousβŒƒ Tab / βŒƒ ⇧ Tab
Copy path of active file⌘ K P
Reveal active file in Explorer⌘ K R
Show active file in new window/instance⌘ K O
Debug
Toggle breakpointF9
Start/ContinueF5
Step into/ outF11 / ⇧ F11
Step overF10
Stop⇧ F5
Show hover⌘ K ⌘ I
Integrated terminal
Show integrated terminalβŒƒ `
Create new terminalβŒƒ ⇧ `
Copy selection⌘ C
Scroll up/down⌘ ↑ / ↓
Scroll page up/downPgUp / PgDn
Scroll to top/bottom⌘ Home / End
Multi-cursor selection
Insert cursorβŒ₯ + click
Insert cursor aboveβŒ₯ ⌘ ↑
Insert cursor belowβŒ₯ ⌘ ↓
Undo last cursor operation⌘ U
Insert cursor at end of each line selected⇧ βŒ₯ I
Select current line⌘ I
Select all occurrences of current selection⇧ ⌘ L
Select all occurrences of current word⌘ F2
Expand / shrink selectionβŒƒ ⇧ ⌘ β†’ / ←
Column (box) selection⇧ βŒ₯ + drag mouse
Column (box) selection up/down⇧ βŒ₯ ⌘ ↑ / ↓
Column (box) selection left/right⇧ βŒ₯ ⌘ ← / β†’
Column (box) selection page up⇧ βŒ₯ ⌘ PgUp
Column (box) selection page down⇧ βŒ₯ ⌘ PgDn
Editing
Cut lineCtrl + X
Insert line bellowCtrl + ↩
Insert line aboveCtrl + ⇧ + ↩
Move line/selection upAlt + ↑
Move line/selection downAlt + ↓
Select word - Repeat select others occurrencesCtrl + D
Delete LineCtrl + ⇧ + K
Indent current line(s)Ctrl + ]
Un-indent current line(s)Ctrl + [
Duplicate line(s) up/downAlt + ⇧ + ↑/↓
Go to the begining of lineHome
Go to the end of lineEnd
Scroll line upCtrl + ↑
Scroll line downCtrl + ↓
Go to the begining of fileCtrl + Home
Go to the end of fileCtrl + End
Collapse regionCtrl + ⇧ + [
Uncollapse regionCtrl + ⇧ + ]
Collapse all regionsCtrl + K Ctrl + 0
Uncoollapse all regionsCtrl + K Ctrl + J
Toggle line commentCtrl + /
Toggle word wrapAlt + Z
Show all Symbols
Goto line in current fileCtrl + G
Quick-open files by nameCtrl + P
Goto symbolCtrl + ⇧ + O
Show Problems panelCtrl + ⇧ + M
Go to next error warningF8
Go to previous error warning⇧ + F8
Navigate editor group historyCtrl + ⇧ + Tab
Go back / forwardAlt + ← / β†’
General
Command promptCtrl + ⇧ + P
Toggle side barCtrl + KB
Show scope in status barCtrl + ⇧ + Alt + P
Find/Replace
FindCtrl + F
ReplaceCtrl + H
Find next / previousF3 / ⇧ + F3
Select all occurrences of Find matchAlt + ↩
Find in filesCtrl + ⇧ + F
Add selection to the next Find matchCtrl + D
Multi-cursor and selection
Insert cursorAlt + Click
Undo last cursor operationCtrl + U
Insert cursor at end of each line selected⇧ + Alt + I
Select current lineCtrl + I
Select all occurrences of current selectionCtrl + ⇧ + L
Select all occurrences of current wordCtrl + F2
Expand selection⇧ + Alt + β†’
Shrink selection⇧ + Alt + ←
Column (box) selection⇧ + Alt + (drag mouse)
Rich languages editing
Trigger suggestionCtrl + Space
Trigger parameter hintsCtrl + ⇧ + Space
Format document⇧ + Alt + F
Format selectionCtrl + K Ctrl + F
Go to definitionF12
Peek definitionAlt + F12
Open Definition to the sideCtrl + K F12
Trim trailing whitespaceCtrl + K Ctrl + X
Change file languageCtrl + K M
Editor management
Close editorCtrl + F4
Close folderCtrl + K F
Split editor in 1 / 2 / 3 partsCtrl + 1 / 2 / 3
Split view into two columnsAlt + ⇧ + 2
Revert view to single columnAlt + ⇧ + 1
Move editor left/rightCtrl + ⇧ + PgUp / PgDn
Toggle editor layout (horizontal/vertical)⇧ + Alt + 0
File management
New fileCtrl + N
Open file...Ctrl + O
Close current tabCtrl + W
SaveCtrl + S
Save as...Ctrl + ⇧ + S
Save allCtrl + K S
Reopen closed editorCtrl + ⇧ + T
Toggle tabsCtrl + Tab
Switch to tab number [NUM] where [NUM] <= number of tabsAlt + [NUM]
Reveal active file in ExplorerCtrl + K R
Show active file in new window/instanceCtrl + K O
Display
Toggle full screenF11
Zoom in/outCtrl + =/-
Toggle Sidebar visibilityCtrl + B
Show Explorer / Toggle focusCtrl + ⇧ + E
Show SearchCtrl + ⇧ + F
Show Source ControlCtrl + ⇧ + G
Show DebugCtrl + ⇧ + D
Show ExtensionsCtrl + ⇧ + E
Replace in filesCtrl + ⇧ + H
Toggle Search detailsCtrl + ⇧ + J
Toggle Output panelCtrl + ⇧ + U
Open Markdown previewCtrl + ⇧ + V
Open Markdown preview to the sideCtrl + K V
Zen Mode (Esc Esc to exit)Ctrl + K Z
Debug
Toggle breakpointF9
Start/ContinueF5
Stop⇧ + F5
Step into/outF11 / ⇧ + F11
Step overF10
Show hoverCtrl + K Ctrl + I
Integrated terminal
Show integrated terminalCtrl + `
Create new terminalCtrl + ⇧ + `
Copy selectionCtrl + C
Paste into active terminalCtrl + V
Scroll up/downCtrl + ↑ / ↓
Scroll page up/down⇧ + PgUp / PgDn
Scroll to top/bottomCtrl + Home / End
Empty state Shortcuts.design toolspage search Empty state Shortcuts.design toolspage search

We searched everywhere, but we couldn’t fine a shortcut matching your search-query.

Try searching for something else. Think we’re missing something? Send us an issue or add it yourself.

Add a missing shortcut πŸ’ͺ️

Helping out

Missing something?

Feel free to request missing tools or give some feedback using Twitter, E-mail or GitHub! If you can, please help out by adding the data yourself and be the hero of the Β±12k people per month using this resource.

Add a tool πŸ’ͺ
Michel van Heest - Creator of Shortcuts.design

Created by

Michel van Heest

Designing products that enable others to to create or become more effective Β· Currently Product Designer @ConvertCalculator Β· Prev @WeTransfer, @Awkward & @YipYip.

Buy me a coffee β˜• Twitter 🐦
Design calculators, forms, and more without code with Convert_, and embed them in Framer.