Skip to main content

Shortcuts



Shortcuts​


General​

Search:
Description πŸ”Ό
Windows
MacOs
Linux
MyShortcut
Close window/instanceCtrl+Shift+W⌘W Ctrl+W
Keyboard ShortcutsCtrl+K Ctrl+S⌘K ⌘S Ctrl+K Ctrl+SπŸ…
New window/instanceCtrl+Shift+Nβ‡§βŒ˜NCtrl+Shift+N
Quick Open, Go to File…Ctrl+P⌘PCtrl+PπŸ…
Show Command PaletteCtrl+Shift+P, F1β‡§βŒ˜P, F1 Ctrl+Shift+P, F1
User SettingsCtrl+,⌘,Ctrl+,

Basic Editing​

Search:
Description πŸ”Ό
Windows
MacOs
Linux
MyShortcut
Add line commentCtrl+K Ctrl+C⌘K ⌘C Ctrl+K Ctrl+C
Copy line (empty selection)Ctrl+C⌘CCtrl+C
Copy line up/downShift+Alt + ↓ / ↑⇧βŒ₯↓ / ⇧βŒ₯↑
Cut line (empty selection)Ctrl+X⌘XCtrl+X
Delete lineCtrl+Shift+Kβ‡§βŒ˜KCtrl+Shift+K πŸ…Ctrl+X
Fold (collapse) all regionsCtrl+K Ctrl+0⌘K ⌘0 / ⌘K ⌘J Ctrl+K Ctrl+0 /
Fold (collapse) all subregionsCtrl+K Ctrl+[⌘K ⌘[ / ⌘K ⌘] Ctrl+K Ctrl+ [ / ]
Fold (collapse) regionCtrl+Shift+[βŒ₯⌘[ / βŒ₯⌘] Ctrl+Shift+ [ / ]
Go to beginning of fileCtrl+HomeβŒ˜β†‘Ctrl+ Home
Go to beginning/end of lineHome / EndHome / End Home / End
Go to end of fileCtrl+EndβŒ˜β†“Ctrl+ End
Indent/outdent lineCtrl+] / [⌘] / ⌘[ Ctrl+] / Ctrl+[
Insert line aboveCtrl+Shift+Enterβ‡§βŒ˜Enter Ctrl+Shift+Enter πŸ…
Insert line belowCtrl+Enter⌘EnterCtrl+Enter /πŸ…
Jump to matching bracketCtrl+Shift+\β‡§βŒ˜\ Ctrl+Shift+\
Move line up/downAlt+ ↑ / ↓βŒ₯↓ / βŒ₯↑Alt+ ↓ / ↑ πŸ…
Remove line commentCtrl+K Ctrl+U⌘K ⌘U Ctrl+K Ctrl+U
Scroll line up/downCtrl+↑ / β†“βŒƒPgUp / βŒƒPgDn Ctrl+ ↑ / ↓
Scroll page up/downAlt+PgUp / PgDn⌘PgUp /⌘PgDnAlt+ PgUp / PgDn
Toggle block commentShift+Alt+A⇧βŒ₯ACtrl+Shift+AπŸ… Ctrl+Alt+#
Toggle line commentCtrl+/⌘/ Ctrl+/πŸ… Ctrl+#
Toggle word wrapAlt+ZβŒ₯Z Alt+Z
Unfold (uncollapse) all regionsCtrl+K Ctrl+J⌘K ⌘0 / ⌘K ⌘J Ctrl+K Ctrl+J
Unfold (uncollapse) all subregionsCtrl+K Ctrl+]⌘K ⌘[ / ⌘K ⌘] Ctrl+K Ctrl+ [ / ]
Unfold (uncollapse) regionCtrl+Shift+]βŒ₯⌘[ / βŒ₯⌘] Ctrl+Shift+ [ / ]

Search:
Description πŸ”Ό
Windows
MacOs
Linux
MyShortcut
Go backwardAlt+ ← βŒƒ- Ctrl+Alt+
Go forwardAlt+ β†’βŒƒβ‡§Ctrl+Shift+-
Go to File...Ctrl+P⌘P Ctrl+PπŸ…
Go to Line...Ctrl+GβŒƒG Ctrl+G
Go to next error or warningF8F8F8
Go to next WordCtrl+β†”πŸ…
Go to previous error or warningShift+F8⇧F8Shift+F8
Go to Symbol...Ctrl+Shift+Oβ‡§βŒ˜OCtrl+Shift+O
Navigate editor group historyCtrl+Shift+TabβŒƒβ‡§TabCtrl+Shift+Tab
Show all SymbolsCtrl+T⌘TCtrl+T
Show Problems panelCtrl+Shift+Mβ‡§βŒ˜MCtrl+Shift+M
Toggle Tab moves focusCtrl+MβŒƒβ‡§M Ctrl+M

Search and Replace​

Search:
Description πŸ”Ό
Windows
MacOs
Linux
MyShortcut
Add selection to next Find matchCtrl+D⌘DCtrl+DπŸ…
FindCtrl+F⌘FCtrl+F
Find next/previousF3 / Shift+F3⌘G / β‡§βŒ˜G F3 / Shift+F3
Move last selection to next Find matchCtrl+K Ctrl+D⌘K ⌘D Ctrl+K Ctrl+D
ReplaceCtrl+HβŒ₯⌘F Ctrl+H
Select all occurences of Find matchAlt+EnterβŒ₯EnterAlt+Enter
Toggle case-sensitive / regex / whole wordAlt+C / R / W

MultiCursor and Selection​

Search:
Description πŸ”Ό
Windows
MacOs
Linux
MyShortcut
Column (box) selectionShift+Alt + (drag mouse)⇧βŒ₯ + drag mouseShift+Alt + drag mouse
Column (box) selectionCtrl+Shift+Alt + (arrow key)
Column (box) selection left/right ⇧βŒ₯βŒ˜β† / β†’
Column (box) selection page down ⇧βŒ₯⌘PgDn
Column (box) selection page up ⇧βŒ₯⌘PgUp
Column (box) selection page up/downCtrl+Shift+Alt+PgUp/PgDn⇧βŒ₯βŒ˜β†‘ / ↓
Expand selectionShift+Alt+β†’βŒƒβ‡§βŒ˜β†’Shift+Alt + β†’
Insert cursorAlt+ClickβŒ₯ + clickAlt+ClickπŸ…
Insert cursor above / belowCtrl+Alt+ ↑ / ↓βŒ₯βŒ˜β†‘ ↓ Shift+Alt+ ↑ / ↓
Insert cursor at end of each line selectedShift+Alt+I⇧βŒ₯IShift+Alt+I
Select all occurrences of current selectionCtrl+Shift+Lβ‡§βŒ˜LCtrl+Shift+L
Select all occurrences of current wordCtrl+F2⌘F2Ctrl+F2
Select current lineCtrl+L⌘L Ctrl+L
Shrink selectionShift+Alt+β†βŒƒβ‡§βŒ˜β†Shift+Alt + ←
Undo last cursor operationCtrl+U⌘UCtrl+U

Rich Languages Editing​

Search:
Description πŸ”Ό
Windows
MacOs
Linux
MyShortcut
Change file languageCtrl+K M⌘K M Ctrl+K M
Format documentShift+Alt+F⇧βŒ₯F Ctrl+Shift+I
Format selectionCtrl+K Ctrl+F⌘K ⌘FCtrl+K Ctrl+F
Go to DefinitionF12F12F12πŸ… Ctrl+Lclick
Open Definition to the sideCtrl+K F12⌘K F12Ctrl+K F12
Peek DefinitionAlt+F12βŒ₯F12Ctrl+Shift+F10
Quick FixCtrl+.⌘. Ctrl+.
Rename SymbolF2F2 F2
Show ReferencesShift+F12⇧F12 Shift+F12
Trigger parameter hintsCtrl+Shift+Spaceβ‡§βŒ˜SpaceCtrl+Shift+Space
Trigger suggestion Ctrl+Space, Ctrl+IβŒƒSpace, ⌘ICtrl+Space, Ctrl+I πŸ…
Trim trailing whitespaceCtrl+K Ctrl+X⌘K ⌘X Ctrl+K Ctrl+X

Editor Management​

Search:
Description πŸ”Ό
Windows
MacOs
Linux
MyShortcut
Close editorCtrl+F4, Ctrl+W⌘W Ctrl+W
Close folderCtrl+K F⌘K F Ctrl+K F
Focus into 1st, 2nd or 3rd editor groupCtrl+ 1 / 2 / 3⌘1 / ⌘2 / ⌘3Ctrl+ 1 / 2 / 3
Focus into previous/next editor groupCtrl+K Ctrl+ ←/β†’βŒ˜K βŒ˜β† / ⌘K βŒ˜β†’Ctrl+K Ctrl + ← β†’
Move active editor groupCtrl+K ← / β†’βŒ˜K ← / ⌘K β†’ Ctrl+K ← / β†’
Move editor left/rightCtrl+Shift+PgUp / PgDn⌘K β‡§βŒ˜β† / ⌘K β‡§βŒ˜β†’ Ctrl+Shift PgUp / PgDn
Split editorCtrl+\⌘\Ctrl+\

File Management​

Search:
Description πŸ”Ό
Windows
MacOs
Linux
MyShortcut
CloseCtrl+F4⌘W Ctrl+W
Close AllCtrl+K Ctrl+W⌘K ⌘W Ctrl+K Ctrl+W
Copy path of active fileCtrl+K P⌘K PCtrl+K P
Keep preview mode editor openCtrl+K Enter⌘K EnterCtrl+K Enter
New FileCtrl+N⌘NCtrl+N
Open File...Ctrl+O⌘O Ctrl+O
Open nextCtrl+TabβŒƒTabCtrl+Tab
Open previousCtrl+Shift+TabβŒƒβ‡§TabCtrl+Shift+Tab
Reopen closed editorCtrl+Shift+Tβ‡§βŒ˜T Ctrl+Shift+T
Reveal active file in ExplorerCtrl+K R⌘K R Ctrl+K R
SaveCtrl+S⌘S Ctrl+S
Save AllCtrl+K SβŒ₯⌘S
Save As...Ctrl+Shift+Sβ‡§βŒ˜S Ctrl+Shift+S
Show active file in new window/instanceCtrl+K O⌘K OCtrl+K O

Display​

Search:
Description πŸ”Ό
Windows
MacOs
Linux
MyShortcut
Open Markdown previewCtrl+Shift+Vβ‡§βŒ˜V Ctrl+Shift+V
Open Markdown preview to the sideCtrl+K V⌘K VCtrl+K V
Open new command prompt/terminal Ctrl+Shift+C
Replace in filesCtrl+Shift+Hβ‡§βŒ˜HCtrl+Shift+H
Show DebugCtrl+Shift+Dβ‡§βŒ˜DCtrl+Shift+D
Show Explorer / Toggle focusCtrl+Shift+Eβ‡§βŒ˜ECtrl+Shift+E
Show ExtensionsCtrl+Shift+Xβ‡§βŒ˜XCtrl+Shift+X
Show Output panelCtrl+Shift+Uβ‡§βŒ˜UCtrl+K Ctrl+H
Show SearchCtrl+Shift+Fβ‡§βŒ˜F Ctrl+Shift+F
Show Source ControlCtrl+Shift+GβŒƒβ‡§G Ctrl+Shift+G
Toggle editor layout (horizontal/vertical)Shift+Alt+0βŒ₯⌘0Shift+Alt+0
Toggle full screenF11βŒƒβŒ˜FF11
Toggle Search detailsCtrl+Shift+Jβ‡§βŒ˜J Ctrl+Shift+J
Toggle Sidebar visibilityCtrl+B⌘BCtrl+B
Zen Mode (Esc Esc to exit)Ctrl+K Z⌘K Z Ctrl+K Z
Zoom in/outCtrl+ = / -⌘= / β‡§βŒ˜- Ctrl+ = / -

Debug​

Search:
Description πŸ”Ό
Windows
MacOs
Linux
MyShortcut
Show hoverCtrl+K Ctrl+I⌘K ⌘I Ctrl+K Ctrl+I
Start/ContinueF5F5F5
Step into/outF11 / Shift+F11F11 / ⇧F11 F11 / Shift+F11
Step overF10F10 F10
StopShift+F5⇧F5Shift+F5
Toggle breakpointF9F9 F9

Integrated Terminal​

Search:
Description πŸ”Ό
Windows
MacOs
Linux
MyShortcut
Copy selectionCtrl+C⌘CCtrl+Shift+C
Create new terminalCtrl+Shift+`βŒƒβ‡§` Ctrl+Shift+`
Paste into active terminalCtrl+VCtrl+Shift+V
Scroll page up/downShift+PgUp / PgDnPgUp / PgDnShift+ PgUp / PgDn
Scroll to top/bottomCtrl+Home / End⌘Home / End Shift+ Home / End
Scroll up/downCtrl+↑ / β†“βŒ˜β†‘ / ↓Ctrl+Shift+ ↑ / ↓
Show integrated terminalCtrl+`βŒƒ`Ctrl+`