from:https://gist.github.com/cleary/d168e301429c0305c49d97907796c72d

VSCode Shortcuts

List of helpful shortcuts for faster coding

  • For mac, replace “Ctrl” with “cmd” and “Alt” with “option”

Official List of all commands

General & File

Open Command Pallete

1
Ctrl+Shift+P

Open New Window

1
Ctrl+Shift+N

Close Window

1
Ctrl+W

Quick File Open

1
Ctrl+P

Access Settings

1
Ctrl+,

New File

1
Ctrl+N

Open File

1
Ctrl+O

Save

1
2
Ctrl+S
Ctrl+Shift+S # Save As

Close File

1
Ctrl+F4

Change File Tabs

1
2
Ctrl+PageUP
Ctrl+PageDown

Open Next File (Dropdown)

1
2
Ctrl+Tab # Scroll next
Ctrl+Shift+Tab # Scroll prev

Zoom

1
2
Ctrl++ # Zoom in
Ctrl+- # Zoom out

Toggle Sidebar

1
Ctrl+B

Toggle Sidebar Focus

1
Ctrl+Shift+E

Spilt Editor

1
Ctrl+\

Integrated Terminal

1
2
Ctrl+` # Toggle terminal
Ctrl+Shift+` # Create new terminal

Code Editing

Go To Start & End Of Line

1
2
home
end

Go To Start & End Of File

1
2
Ctrl+Home
Ctrl+End

Cut, Copy & Past Line

1
2
3
Ctrl+X # Cut
Ctrl+C # Copy
Ctrl+V # Paste

Move Line Up & Down

1
2
Alt+Up
Alt+Down

Copy Line Up & Down

1
2
Shift+Alt+Up
Shift+Alt+Down

Remove Line

1
Ctrl+Shift+K

Insert Line

1
2
Ctrl+Enter # Insert above
Ctrl+Shift+Enter # Insert below

Jump To Matching Bracket

1
Ctrl+Shift+\

Fold

1
2
Ctrl+Shift+[
Ctrl+Shift+]

Fold All

1
2
Ctrl+K, Ctrl+0 (zero)
Ctrl+K, Ctrl+J

Add Line Comment

1
Ctrl+/

Add Block Comment

1
Shift+Alt+A

Scroll Up & Down

1
2
Ctrl+Up
Ctrl+Down

Move By Word

1
2
Ctrl+Right
Ctrl+Left

Highlight Code

1
Shift+Any Direction

Go To Next Match

1
F3

Select Next Match

1
Ctrl+D

Select All Matches & Add Cursor

1
Ctrl+F2

Select All Matches from Find

1
Alt+Enter

Add Cursor

1
Alt+Click

Go to Symbol

1
Ctrl+Shift+O