Visual Studio Code

Visual Studio Code (VS Code), launched by Microsoft in 2015, has quickly become the most popular code editor worldwide, with over 70% of developers using it. Known for its speed, extensibility, and cross-platform support, VS Code allows you to customize workflows with thousands of extensions. Fun fact: It’s built on Electron, which means it runs like a web app! With features like IntelliSense, debugging, and Git integration, VS Code makes coding faster, smarter, and more enjoyable.

Shortcuts

General

WindowMacDescription
CtrlShiftP
βŒ˜β‡§P
Show Command Palette
CtrlP
⌘P
Quick Open, Go to File
CtrlShiftN
βŒ˜β‡§N
New window/instance
CtrlShiftW
⌘W
Close window/instance
Ctrl,
⌘,
User Settings
CtrlKS
⌘KS
Keyboard Shortcuts

Basic editing

WindowMacDescription
CtrlX
⌘X
Cut line (empty selection)
CtrlC
⌘C
Copy line (empty selection)
Alt↑↓
βŒ₯↑↓
Move line up/down
ShiftAlt↑↓
⇧βŒ₯↑↓
Copy line up/down
CtrlShiftK
βŒ˜β‡§K
Delete line
CtrlEnter
⌘⏎
Insert line below
CtrlShiftEnter
βŒ˜β‡§βŽ
Insert line above
CtrlShift\
βŒ˜β‡§\
Jump to matching bracket
Ctrl]
⌘]
Indent line
Ctrl[
⌘[
Outdent line
Home
Home
Go to beginning of line
End
End
Go to end of line
CtrlHome
βŒ˜β†‘
Go to beginning of file
CtrlEnd
βŒ˜β†“
Go to end of file
Ctrl↑↓
βŒƒPgUpPgDn
Scroll line up/down
AltPausePgDn
⌘PgUpPgDn
Scroll page up/down
CtrlShift[
⌘βŒ₯[
Fold (collapse) region
CtrlShift]
⌘βŒ₯]
Unfold (uncollapse) region
CtrlK[
⌘K[
Fold (collapse) all subregions
CtrlK]
⌘K]
Unfold (uncollapse) all subregions
CtrlK0
⌘K0
Fold (collapse) all regions
CtrlKJ
⌘KJ
Unfold (uncollapse) all regions
CtrlKC
⌘KC
Add line comment
CtrlKU
⌘KU
Remove line comment
Ctrl/
⌘/
Toggle line comment
ShiftAltA
⇧βŒ₯A
Toggle block comment
AltZ
βŒ₯Z
Toggle word wrap

Navigation

WindowMacDescription
CtrlT
⌘T
Show all Symbols
CtrlG
βŒ₯G
Go to Line
CtrlP
⌘P
Go to File
CtrlShiftO
βŒ˜β‡§O
Go to Symbol
CtrlShiftM
βŒ˜β‡§M
Show Problems panel
F8
FnF8
Go to next error or warning
ShiftF8
⇧FnF8
Go to previous error or warning
CtrlShiftTab
βŒƒβ‡§β‡₯
Navigate editor group history
Alt←
βŒƒ-
Go back
Alt→
βŒƒβ‡§-
Go forward
CtrlM
βŒƒβ‡§M
Toggle Tab moves focus

Search and replace

WindowMacDescription
CtrlF
⌘F
Find
CtrlH
βŒ₯⌘F
Replace
F3
⌘G
Find next
ShiftF3
βŒ˜β‡§G
Find previous
AltEnter
βŒ₯⏎
Select all occurences of Find match
CtrlD
⌘D
Add selection to next Find match
CtrlKD
⌘KD
Move last selection to next Find match
AltC
❌Toggle case-sensitive
AltR
❌Toggle regex
AltW
❌Toggle whole word

Multi-cursor and selection

WindowMacDescription
Alt
βŒ₯
Insert cursor
CtrlAlt↑
βŒ₯βŒ˜β†‘
Insert cursor above
CtrlAlt↓
βŒ₯βŒ˜β†“
Insert cursor below
CtrlU
⌘U
Undo last cursor operation
ShiftAltI
⇧βŒ₯I
Insert cursor at end of each line selected
CtrlL
⌘L
Select current line
CtrlShiftL
βŒ˜β‡§L
Select all occurrences of current selection
CtrlF2
⌘FnF2
Select all occurrences of current word
ShiftAlt→
βŒƒβ‡§βŒ˜β†’
Expand selection
ShiftAlt←
βŒƒβ‡§βŒ˜β†
Shrink selection
CtrlShiftAltArrow Keys
⇧βŒ₯⌘
Column (box) selection
CtrlShiftAltPgUpPgDn
⇧βŒ₯⌘PgUpPgDn
Column (box) selection page up/down

Rich languages editing

WindowMacDescription
CtrlSpace
βŒ₯Space
Trigger suggestion
CtrlShiftSpace
β‡§βŒ˜Space
Trigger parameter hints
ShiftAltF
⇧βŒ₯F
Format document
CtrlKF
⌘KF
Format selection
F12
F12
Go to Definition
AltF12
βŒ₯F12
Peek Definition
CtrlKF12
⌘KF12
Open Definition to the side
Ctrl.
⌘.
Quick Fix
ShiftF12
⇧F12
Show References
F2
F2
Rename Symbol
CtrlKX
⌘KX
Trim trailing whitespace
CtrlKM
⌘KM
Change file language

Editor management

WindowMacDescription
CtrlW
⌘W
Close editor
CtrlKF
⌘KF
Close folder
Ctrl\
⌘\
Split editor
Ctrl123
⌘123
Focus into 1 st, 2nd or 3rd editor group
CtrlK←
⌘K←
Focus into previous editor group
CtrlK→
⌘Kβ†’
Focus into next editor group
CtrlShiftPgUpPgDn
β‡§βŒ˜K←→
Move editor left/right
CtrlK←→
⌘K←→
Move active editor group

File management

WindowMacDescription
CtrlS
⌘S
Save
CtrlShiftS
βŒ˜β‡§S
Save As
CtrlKS
βŒ₯⌘S
Save all
CtrlF4
⌘W
Close
CtrlKW
⌘KW
Close All
CtrlShiftT
β‡§βŒ˜T
Reopen closed editor
CtrlKEnter
⌘K⏎
Keep preview mode editor open
CtrlTab
βŒƒβ‡₯
Open next
CtrlShiftTab
βŒƒβ‡§β‡₯
Open previous
CtrlKP
⌘KP
Copy path of active file
CtrlKR
⌘KR
Reveal active file in Finder
CtrlKO
⌘KO
Show active file in new window/instance
CtrlN
⌘N
New File
CtrlO
⌘O
Open File

Display

WindowMacDescription
F11
βŒƒβŒ˜F
Toggle full screen
ShiftAlt0
βŒ₯⌘0
Toggle editor layout (horizontal/vertical)
Ctrl=
⌘=
Zoom in
Ctrl-
βŒ˜β‡§-
Zoom out
CtrlB
⌘B
Toggle Sidebar visibility
CtrlShiftE
βŒ˜β‡§E
Show Explorer / Toggle focus
CtrlShiftF
βŒ˜β‡§F
Show Search
CtrlShiftG
βŒƒβ‡§G
Show Source Control
CtrlShiftD
βŒ˜β‡§D
Show Debug
CtrlShiftX
β‡§βŒ˜X
Show Extensions
CtrlShiftH
βŒ˜β‡§H
Replace in files
CtrlShiftJ
βŒ˜β‡§J
Toggle Search details
CtrlShiftU
βŒ˜β‡§U
Show Output panel
CtrlShiftV
βŒ˜β‡§V
Open Markdown preview
CtrlKV
⌘KV
Open Markdown preview to the side
CtrlKZ
⌘KZ
Zen Mode (Esc Esc to exit)

Debug

WindowMacDescription
F9
F9
Toggle breakpoint
F5
F5
Start/Continue
ShiftF5
⇧F5
Stop
F11
F11
Step into
ShiftF11
⇧F11
Step out
F10
F10
Step over
CtrlKI
⌘KI
Show hover

Integrated terminal

WindowMacDescription
Ctrl`
βŒƒ`
Show integrated terminal
CtrlShift`
βŒƒβ‡§`
Create new terminal
CtrlC
⌘C
Copy selection
CtrlV
❌Paste into active terminal
Ctrl↑↓
βŒ˜β†‘β†“
Scroll up/down
ShiftPgUpPgDn
PgUpPgDn
Scroll page up/down
CtrlHomeEnd
⌘HomeEnd
Scroll to top/bottom