Visual Studio Code (Linux) keyboard shortcuts 

Visual Studio Code (Linux)    

-
7 years ago
- Shortcuts
0
Ctrl + ↑  Shift + P then F1

Show Command Palette

0
Ctrl + P

Quick Open, Go to File

0
Ctrl + ↑  Shift + N

New window/instance

0
Ctrl + W

Close window/instance

0
Ctrl + ,

User Settings

0
Ctrl + K then Ctrl + S

Keyboard Shortcuts

Advertisement

0
Ctrl + X

Cut line (empty selection)

1
Ctrl + C

Copy line (empty selection)

0
Alt +   

Move line up/down

0
Ctrl + ↑  Shift + K

Delete line

0
Ctrl + ⤶ Enter

Insert line below

-1
Ctrl + ↑  Shift + ⤶ Enter

Insert line above

-1
Ctrl + ↑  Shift + \

Jump to matching bracket

0
Ctrl + ]

Indent/outdent line

0
or Ctrl + [
0
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

0
Ctrl + ↑  Shift + ]

Unfold (uncollapse) region

0
Ctrl + K then Ctrl + [

Fold (collapse) all subregions

0
Ctrl + K then Ctrl + ]

Unfold (uncollapse) all subregions

0
Ctrl + K then Ctrl + 0

Fold (collapse) all regions

0
Ctrl + K then Ctrl + J

Unfold (uncollapse) all regions

0
Ctrl + K then Ctrl + C

Add line comment

0
Ctrl + K then Ctrl + U

Remove line comment

0
Ctrl + /

Toggle line comment

0
↑  Shift + Alt + A

Toggle block comment

0
Alt + Z

Toggle word wrap

1
Ctrl + T

Show all symbols

0
Ctrl + G

Go to line

0
Ctrl + P

Go to file

0
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
Ctrl + Alt + -

Go back

0
Ctrl + ↑  Shift + -

Go forward

0
Ctrl + M

Toggle Tab moves focus

0
Ctrl + F

Find

0
Ctrl + H

Replace

0
F3

Find next

0
↑  Shift + F3

Find previous

0
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

2
Alt +

Insert cursor

Note: The Alt+Click shortcut may not work on some Linux distributions. You can change the modifier key for the Insert cursor command to Ctrl+Click with the “editor.multiCursorModifier” setting.
0
↑  Shift + Alt +   

Insert cursor above / below

0
Ctrl + U

Undo last cursor operation

Advertisement

0
↑  Shift + Alt + I

Insert cursor at end of each line selected

0
Ctrl + I

Select current line

0
Ctrl + ↑  Shift + L

Select all occurrences of current selection

0
Ctrl + F2

Select all occurrences of current word

0
↑  Shift + Alt +

Expand selection

0
↑  Shift + Alt +

Shrink selection

-1
↑  Shift + Alt +

Column (box) selection

0
or Ctrl + ↑  Shift + Alt +
0
Ctrl + Space

Trigger suggestion

0
Ctrl + ↑  Shift + Space

Trigger parameter hints

0
Ctrl + ↑  Shift + I

Format document

0
Ctrl + K then Ctrl + F

Format selection

0
F12

Go to Definition

0
Ctrl + ↑  Shift + F10

Peek Definition

0
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 + W

Close editor

0
Ctrl + K then F

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

1
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 + S

Save

0
Ctrl + ↑  Shift + S

Save As

0
Ctrl + K

S Save All

0
Ctrl + W

Close

0
Ctrl + K then Ctrl + W

Close All

0
Ctrl + ↑  Shift + T

Reopen closed editor

0
Ctrl + K then ⤶ 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

0
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 + C

Open new command prompt/terminal

0
Ctrl + ↑  Shift + V

Open Markdown preview

0
Ctrl + K

Open Markdown preview to the side

0
Ctrl + K then Z

Zen Mode (Esc Esc to exit)

-1
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 + ↑  Shift + C

Copy selection

0
Ctrl + ↑  Shift + V

Paste into active terminal

0
Ctrl + ↑  Shift +   

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


Share this page on:
Is this page helpful?
0 0

Program information

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

Web page: code.visualstudio.com

Last update: 16.01.2021 08:51 UTC

How easy to press shortcuts: 71%

More information >>

Updated: Updated program information. (3 updates.) 16.01.2021 08:50:27 Added some shortcuts.
16.01.2021 08:51:06 Added some shortcuts.
16.01.2021 08:51:25 Updated program information.

Shortcut count: 130

Platform detected: Windows or Linux

Similar programs



User operations

Add Visual Studio Code (Linux) to your list of favorites

Advertisement


What is your favorite Visual Studio Code (Linux) hotkey? Do you have any useful tips for it? Let other users know below.


 
No comments yet. Ask, or type the first one!

Latest articles