Visual Studio Code (Windows) keyboard shortcuts

Visual Studio Code (Windows)  

Zeynel Abidin Öztürk -
3 years ago
- Shortcuts
-3
Ctrl + ↑   Shift + P then F1

Show Command Palette

0
Ctrl + P

Quick Open, Go to File

0
Ctrl + ↑   Shift + N

New window/instance

1
Ctrl + ↑   Shift + W

Close window/instance

0
Ctrl + ,

User Settings

0
Ctrl + K then Ctrl + S

Keyboard Shortcuts

0
Ctrl + X

Cut line (empty selection)

1
Ctrl + C

Copy line (empty selection)

0
Alt + ↑  ↓

Move line up/down

0
↑   Shift + Alt + ↑  ↓

Copy line up/down

-1
Ctrl + ↑   Shift + K

Delete line

0
Ctrl + ⤶ Enter

Insert line below

0
Ctrl + ↑   Shift + ⤶ Enter

Insert line above

0
Ctrl + ↑   Shift + \

Jump to matching bracket

-1
Ctrl + ]

Indent/outdent line

0
or Ctrl + [
-1
Home

Go to beginning of line

0
End

Go to end of line

1
Ctrl + Home

Go to beginning of file

0
Ctrl + End

Go to end of file

0
Ctrl + ↑  ↓

Scroll line up/down

0
Alt + Page Up

Scroll page up

0
Alt + Page Down

Scroll page down

0
Ctrl + ↑   Shift + [

Fold (collapse) region

-1
Ctrl + ↑   Shift + ]

Unfold (uncollapse) region

0
Ctrl + K then Ctrl + [

Fold (collapse) all subregions

0
Ctrl + K then Ctrl + ]

Unfold (uncollapse) all subregions

1
Ctrl + K then Ctrl + 0

Fold (collapse) all regions

2
Ctrl + K then Ctrl + J

Unfold (uncollapse) all regions

-2
Ctrl + K then Ctrl + C

Add line comment

2
Ctrl + K then Ctrl + U

Remove line comment

0
Ctrl + /

Toggle line comment

5
↑   Shift + Alt + A

Toggle block comment

0
Alt + Z

Toggle word wrap

0
Ctrl + T

Show all symbols

0
Ctrl + G

Go to line

0
Ctrl + P

Go to file

1
Ctrl + ↑   Shift + O

Go to symbol

0
Ctrl + ↑   Shift + M

Show Problems panel

0
F8

Go to next error or warning

0
↑   Shift + F8

Go to previous error or warning

0
Ctrl + ↑   Shift + Tab

Navigate editor group history

-1
Alt + ←  →

Go back / forward

0
Ctrl + M

Toggle Tab moves focus

2
Ctrl + F

Find

1
Ctrl + H

Replace

1
F3

Find next

0
↑   Shift + F3

Find previous

-1
Alt + ⤶ Enter

Select all occurences of Find match

0
Ctrl + D

Add selection to next Find match

0
Ctrl + K then Ctrl + D

Move last selection to next Find match

0
Alt + C

Toggle case-sensitive

0
Alt + R

Toggle regex

0
Alt + W

Toggle whole word

1
Alt +

Insert cursor

0
Ctrl + Alt + ↑  ↓

Insert cursor above / below

0
Ctrl + U

Undo last cursor operation

0
↑   Shift + Alt + I

Insert cursor at end of each line selected

-1
Ctrl + I

Select current line

0
Ctrl + ↑   Shift + L

Select all occurrences of current selection

0
Ctrl + F2

Select all occurrences of current word

1
↑   Shift + Alt +

Expand selection

0
↑   Shift + Alt +

Shrink selection

0
↑   Shift + Alt +

Column (box) selection

0
or Ctrl + ↑   Shift + Alt + ← ↑ → ↓
0
Ctrl + Shift + Alt + Page Up

Column (box) selection page up

0
Ctrl + Shift + Alt + Page Down

Column (box) selection page down

1
Ctrl + Space

Trigger suggestion

0
Ctrl + ↑   Shift + Space

Trigger parameter hints

1
↑   Shift + Alt + F

Format document

1
Ctrl + K then Ctrl + F

Format selection

-1
F12

Go to Definition

0
Alt + F12

Peek Definition

-1
Ctrl + K then F12

Open Definition to the side

0
Ctrl + .

Quick Fix

0
↑   Shift + F12

Show References

0
F2

Rename Symbol

0
Ctrl + K then Ctrl + X

Trim trailing whitespace

0
Ctrl + K then M

M Change file language

0
Ctrl + F4 then Ctrl + W

Close editor

0
Ctrl + K

F Close folder

0
Ctrl + \

Split editor

0
Ctrl + 1

Focus into first group

0
Ctrl + 2

Focus into second group

0
Ctrl + 3

Focus into third group

0
Ctrl + K then Ctrl + ←  →

Focus into previous/next editor group

0
Ctrl + Shift + Page Up

Move editor left

0
Ctrl + Shift + Page Down

Move editor right

0
Ctrl + K then ←  →

Move active editor group

0
Ctrl + N

New File

0
Ctrl + O

Open File

0
Ctrl + K then Ctrl + O

Open folder

0
Ctrl + R

Open recent

2
Ctrl + S

Save

0
Ctrl + ↑   Shift + S

Save As

1
Ctrl + K then S

Save All

0
Ctrl + F4

Close

0
Ctrl + K then Ctrl + W

Close All

0
Ctrl + ↑   Shift + T

Reopen closed editor

1
Ctrl + K

Enter Keep preview mode editor open

0
Ctrl + Tab

Open next

0
Ctrl + ↑   Shift + Tab

Open previous

0
Ctrl + K then P

Copy path of active file

0
Ctrl + K then R

Reveal active file in Explorer

0
Ctrl + K then O

Show active file in new window/instance

0
F11

Toggle full screen

0
↑   Shift + Alt + 1

Toggle editor layout (horizontal/vertical)

0
Ctrl + =

Zoom in

1
Ctrl + -

Zoom out

0
Ctrl + B

Toggle Sidebar visibility

0
Ctrl + ↑   Shift + E

Show Explorer / Toggle focus

0
Ctrl + ↑   Shift + F

Show Search

0
Ctrl + ↑   Shift + G

Show Source Control

0
Ctrl + ↑   Shift + D

Show Debug

0
Ctrl + ↑   Shift + X

Show Extensions

0
Ctrl + ↑   Shift + H

Replace in files

0
Ctrl + ↑   Shift + J

Toggle Search details

0
Ctrl + ↑   Shift + U

Show Output panel

0
Ctrl + ↑   Shift + V

Open Markdown preview

0
Ctrl + K then V

Open Markdown preview to the side

0
Ctrl + K then Z

Zen Mode (Esc Esc to exit)

0
F9

Toggle breakpoint

0
F5

Start/Continue

0
↑   Shift + F5

Stop

0
F11

Step into

0
↑   Shift + F11

Step out

0
F10

Step over

0
Ctrl + K then Ctrl + I

Show hover

0
Ctrl + `

Show integrated terminal

0
Ctrl + ↑   Shift + `

Create new terminal

0
Ctrl + C

Copy selection

0
Ctrl + V

Paste into active terminal

0
Ctrl + ↑  ↓

Scroll up/down

0
Shift + Page Up

Scroll page up

0
Shift + Page Down

Scroll page down

0
Ctrl + Home

Scroll to top

0
Ctrl + End

Scroll to bottom

0
Ctrl + Alt + M

Pretty JSON formatting

Note: If this shortcut doesn't work, it may be because the shortcut conflicts with Nvidia GeForce Now or some other program. In this case, you can change Ctrl + Alt + M (Toggle microphone on/off) in Nvidia Now to another shortcut.

Share this page on:

Program information

Program name: Visual Studio Code (Windows) Visual Studio Code (Windows) (Developer tools)

Visual Studio Code is a source code editor developed by Microsoft for Windows, Linux and macOS. It has features such as debugging, Git control, syntax highlighting, smart code completion, snippets and refactoring. It's free and open-source, however official download is under a proprietary license.

Web page: code.visualstudio.com

Last update: 08 March 2021

How easy to press shortcuts: 70%

More information >>

Updated: Added some shortcuts. (6 updates.) 12/25/2019 11:13:07 AM Added some shortcuts.
12/25/2019 11:14:27 AM Updated program information.
1/16/2021 9:44:28 AM Added some shortcuts.
1/16/2021 9:45:36 AM Added some shortcuts.
3/8/2021 5:08:47 PM Added some shortcuts.

Shortcut count: 138

Platform detected: Windows or Linux (not macOS)

Similar programs



Advertisement

Join our mailing list!

Your email is kept private and we don't spam.

hmsolomon says: 2 years ago 12/24/2018 3:48 AM
MS Visual Studio Code needs a keyboard shortcut for erasing the terminal window output area. Now we have click on the trash can, "Kill Terminal", to get a clean slate.