Essential Shortcut Keys Visual Studio Code

September 15, 2022 Posted by Pasindu Sathsara

File Management

Option

Shortcut Key

New File

Ctrl+N

Open File

Ctrl+O

Save

Ctrl+S

Close

Ctrl+F4

Open Next

Ctrl+Tab

Open Previous

Ctrl+Shift+Tab





















Basic Editing 

Option

Shortcut Key

Cut line

Ctrl+X

Copy line

Ctrl+C

Move line up/down

Alt + Up arrow / Down arrow

Copy line up/down

Shift+alt+ Down arrow / Up arrow

Delete line

Ctrl+Shift+K

Insert line below

Ctrl+Enter










Multi-Cursor & Selection


Option

Shortcut Key

Insert cursor

Alt+Click

Undo last Cursor Operation

Ctrl+U

Insert cursor at end of each line selected

Ctrl+Alt+I

Select Current line

Ctrl+L

Select all occurrences of current word

Ctrl+F2
















  

Display 

Option

Shortcut Key

Toggle full screen

F11

Toggle editor layout (horizontal/ vertical)

Shift+Alt+0

Zoom in/out

Ctrl+ = / -

Toggle side bar visibility

Ctrl+B

Show explorer / toggle focus

Ctrl+Shift+E

Show search

Ctrl+Shift+F





















Navigation

Option

Shortcut Key

Show all symbols

Ctrl+T

Go to line

Ctrl+G

Go to symbol

Ctrl+Shift+O

Show problem panel

Ctrl+Shift+M

Go to the next error or warning

F8

Go to previous error or warning

Shift+F8