Visual Studio Code Keyboard Shortcuts

Ace your homework & exams now with Quizwiz!

Ctrl+K Ctrl+C

Add line comment

Ctrl+D

Add selection to next Find match

Ctrl+Shift+Alt+(arrow key)

Column (box) selection

Shift+Alt+(drag mouse)

Column (box) selection

Ctrl+Shift+Alt+PgUp/PgDn

Column (box) selection page up/down

Ctrl+C

Copy line (empty selection)

Shift+Alt + ↓ / ↑

Copy line up/down

Ctrl+K P

Copy path of active file

Ctrl+C

Copy selection

Ctrl+Shift+`

Create new terminal

Ctrl+X

Cut line (empty selection)

Ctrl+Shift+K

Delete line

Shift+Alt+→

Expand selection

Ctrl+F

Find

F3 / Shift+F3

Find next/previous

Ctrl+ 1 / 2 / 3

Focus into 1st, 2nd or 3rd editor group

Ctrl+K Ctrl+ ←/→

Focus into previous/next editor group

Ctrl+K Ctrl+0

Fold (collapse) all regions

Ctrl+K Ctrl+[

Fold (collapse) all subregions

Ctrl+Shift+[

Fold (collapse) region

Shift+Alt+F

Format document

Ctrl+K Ctrl+F

Format selection

Alt+ ← / →

Go back / forward

F12

Go to Definition

Ctrl+P

Go to File...

Ctrl+G

Go to Line...

Ctrl+Shift+O

Go to Symbol...

Ctrl+Home

Go to beginning of file

Home / End

Go to beginning/end of line

Ctrl+End

Go to end of file

F8

Go to next error or warning

Shift+F8

Go to previous error or warning

Ctrl+] / [

Indent/outdent line

Ctrl+Alt+ ↑ / ↓

Insert cursor above / below

Shift+Alt+I

Insert cursor at end of each line selected

Alt+Click

Insert extra cursor

Ctrl+Shift+Enter

Insert line above

Ctrl+Enter

Insert line below

Shift+PgUp / PgDn

Integrated Terminal - Scroll page up/down

Ctrl+Home / End

Integrated Terminal - Scroll to top/bottom

Ctrl+↑ / ↓

Integrated Terminal - Scroll up/down

Ctrl+Shift+\

Jump to matching bracket

Ctrl+K Enter

Keep preview mode editor open

Ctrl+K Ctrl+S

Keyboard Shortcuts

Ctrl+K ← / →

Move active editor group

Ctrl+Shift+PgUp / PgDn

Move editor left/right

Ctrl+K Ctrl+D

Move last selection to next Find match

Alt+ ↑ / ↓

Move line up/down

Ctrl+Shift+Tab

Navigate editor group history

Ctrl+N

New File

Ctrl+Shift+N

New window/instance

Ctrl+K F12

Open Definition to the side

Ctrl+O

Open File...

Ctrl+Shift+V

Open Markdown preview

Ctrl+K V

Open Markdown preview to the side

Ctrl+Tab

Open next

Ctrl+V

Paste into active terminal

Alt+F12

Peek Definition

Ctrl+.

Quick Fix

Ctrl+P

Quick Open, Go to File...

Ctrl+K Ctrl+U

Remove line comment

F2

Rename Symbol

Ctrl+Shift+T

Reopen closed editor

Ctrl+H

Replace

Ctrl+Shift+H

Replace in files

Ctrl+K R

Reveal active file in Explorer

Ctrl+S

Save

Ctrl+K S

Save All

Ctrl+Shift+S

Save As...

Ctrl+↑ / ↓

Scroll line up/down

Alt+PgUp / PgDn

Scroll page up/down

Alt+Enter

Select all occurences of Find match

Ctrl+Shift+L

Select all occurrences of current selection

Ctrl+F2

Select all occurrences of current word

Ctrl+L

Select current line

Ctrl+Shift+P, F1

Show Command Palette

Ctrl+Shift+D

Show Debug

Ctrl+Shift+E

Show Explorer / Toggle focus

Ctrl+Shift+X

Show Extensions

Ctrl+Shift+U

Show Output panel

Ctrl+Shift+M

Show Problems panel

Shift+F12

Show References

Ctrl+Shift+F

Show Search

Ctrl+Shift+G

Show Source Control

Ctrl+K O

Show active file in new window/instance

Ctrl+T

Show all Symbols

Ctrl+K Ctrl+I

Show hover

Ctrl+`

Show integrated terminal

Shift+Alt+←

Shrink selection

Ctrl+K M

Change file language

Ctrl+F4

Close

Ctrl+K Ctrl+W

Close All

Ctrl+F4, Ctrl+W

Close editor

Ctrl+K F

Close folder

Ctrl+Shift+W

Close window/instance

Ctrl+\

Split editor

F5

Start/Continue

F11 / Shift+F11

Step into/out

F10

Step over

Shift+F5

Stop

Ctrl+Shift+J

Toggle Search details

Ctrl+B

Toggle Sidebar visibility

Ctrl+M

Toggle Tab moves focus

Shift+Alt+A

Toggle block comment

F9

Toggle breakpoint

Alt+C / R / W

Toggle case-sensitive / regex / whole word

Shift+Alt+0

Toggle editor layout (horizontal/vertical)

F11

Toggle full screen

Ctrl+/

Toggle line comment

Alt+Z

Toggle word wrap

Ctrl+Shift+Space

Trigger parameter hints

Ctrl+Space

Trigger suggestion

Ctrl+K Ctrl+X

Trim trailing whitespace

Ctrl+U

Undo last cursor operation

Ctrl+K Ctrl+J

Unfold (uncollapse) all regions

Ctrl+K Ctrl+]

Unfold (uncollapse) all subregions

Ctrl+Shift+]

Unfold (uncollapse) region

Ctrl+,

User Settings

Ctrl+K Z

Zen Mode (Esc Esc to exit)

Ctrl+ = / -

Zoom in/out


Related study sets

Flocabulary- Types of Government

View Set

(Chem 2) Quiz 1: Chapter 9 (Chemical Bonding: The Lewis Model)

View Set

Chapter 9 Production and Operation Management

View Set

opl 3 (the last quizlet i will ever make)

View Set

IM5 Assessment and Intervention Practice Questions

View Set