Visual Studio Code (Windows)

Basic editing

Copy line up/down

↑   Shift + Alt + ↑  ↓

All hotkeys for Visual Studio Code (Windows)

General
F1 Show Command Palette

Ctrl + ↑   Shift + P then F1

Navigation
Go to file

Ctrl + P

General
New window/instance

Ctrl + ↑   Shift + N

General
Close window/instance

Ctrl + ↑   Shift + W

General
User Settings

Ctrl + ,

General
Keyboard Shortcuts

Ctrl + K then Ctrl + S

Basic editing
Cut line (empty selection)

Ctrl + X

Integrated terminal
Copy selection

Ctrl + C

Basic editing
Move line up/down

Alt + ↑  ↓

Basic editing
Copy line up/down

↑   Shift + Alt + ↑  ↓

Basic editing
Delete line

Ctrl + ↑   Shift + K

Basic editing
Insert line below

Ctrl + ⤶ Enter

Basic editing
Insert line above

Ctrl + ↑   Shift + ⤶ Enter

Basic editing
Jump to matching bracket

Ctrl + ↑   Shift + \

Basic editing
Indent/outdent line

Ctrl + ]

Basic editing
Indent/outdent line

Ctrl + [

Basic editing
Go to beginning of line

Home

Basic editing
Go to end of line

End

Integrated terminal
Scroll to top

Ctrl + Home

Integrated terminal
Scroll to bottom

Ctrl + End

Integrated terminal
Scroll up/down

Ctrl + ↑  ↓

Basic editing
Scroll page up

Alt + Page Up

Basic editing
Scroll page down

Alt + Page Down

Basic editing
Fold (collapse) region

Ctrl + ↑   Shift + [

Basic editing
Unfold (uncollapse) region

Ctrl + ↑   Shift + ]

Basic editing
Fold (collapse) all subregions

Ctrl + K then Ctrl + [

Basic editing
Unfold (uncollapse) all subregions

Ctrl + K then Ctrl + ]

Basic editing
Fold (collapse) all regions

Ctrl + K then Ctrl + 0

Basic editing
Unfold (uncollapse) all regions

Ctrl + K then Ctrl + J

Basic editing
Add line comment

Ctrl + K then Ctrl + C

Basic editing
Remove line comment

Ctrl + K then Ctrl + U

Basic editing
Toggle line comment

Ctrl + /

Basic editing
Toggle block comment

↑   Shift + Alt + A

Basic editing
Toggle word wrap

Alt + Z

Navigation
Show all symbols

Ctrl + T

Navigation
Go to line

Ctrl + G

Navigation
Go to symbol

Ctrl + ↑   Shift + O

Navigation
Show Problems panel

Ctrl + ↑   Shift + M

Navigation
Go to next error or warning

F8

Navigation
Go to previous error or warning

↑   Shift + F8

File management
Open previous

Ctrl + ↑   Shift + ⭾ Tab

Navigation
Go back / forward

Alt + ←  →

Navigation
Toggle Tab moves focus

Ctrl + M

Search and replace
Find

Ctrl + F

Search and replace
Replace

Ctrl + H

Search and replace
Find next

F3

Search and replace
Find previous

↑   Shift + F3

Search and replace
Select all occurences of Find match

Alt + ⤶ Enter

Search and replace
Add selection to next Find match

Ctrl + D

Search and replace
Move last selection to next Find match

Ctrl + K then Ctrl + D

Search and replace
Toggle case-sensitive

Alt + C

Search and replace
Toggle regex

Alt + R

Search and replace
Toggle whole word

Alt + W

Multi-cursor and selection
Insert cursor

Alt + Mouse left click

Multi-cursor and selection
Insert cursor above / below

Ctrl + Alt + ↑  ↓

Multi-cursor and selection
Undo last cursor operation

Ctrl + U

Multi-cursor and selection
Insert cursor at end of each line selected

↑   Shift + Alt + I

Multi-cursor and selection
Select current line

Ctrl + I

Multi-cursor and selection
Select all occurrences of current selection

Ctrl + ↑   Shift + L

Multi-cursor and selection
Select all occurrences of current word

Ctrl + F2

Multi-cursor and selection
Expand selection

↑   Shift + Alt +

Multi-cursor and selection
Shrink selection

↑   Shift + Alt +

Multi-cursor and selection
Column (box) selection

↑   Shift + Alt + Mouse movement

Multi-cursor and selection
Column (box) selection

Ctrl + ↑   Shift + Alt + ← ↑ → ↓

Multi-cursor and selection
Column (box) selection page up

Ctrl + Shift + Alt + Page Up

Multi-cursor and selection
Column (box) selection page down

Ctrl + Shift + Alt + Page Down

Rich languages editing
Trigger suggestion

Ctrl + Space

Rich languages editing
Trigger parameter hints

Ctrl + ↑   Shift + Space

Rich languages editing
Format document

↑   Shift + Alt + F

Rich languages editing
Format selection

Ctrl + K then Ctrl + F

Rich languages editing
Go to Definition

F12

Rich languages editing
Peek Definition

Alt + F12

Rich languages editing
12 Open Definition to the side

Ctrl + K then F12

Rich languages editing
Quick Fix

Ctrl + .

Rich languages editing
Show References

↑   Shift + F12

Rich languages editing
Rename Symbol

F2

Rich languages editing
Trim trailing whitespace

Ctrl + K then Ctrl + X

Rich languages editing
M Change file language

Ctrl + K then M

Editor management
Close editor

Ctrl + F4 then Ctrl + W

Display
Z Zen Mode (Esc Esc to exit)

Ctrl + K

Editor management
Split editor

Ctrl + \

Editor management
Focus into first group

Ctrl + 1

Editor management
Focus into second group

Ctrl + 2

Editor management
Focus into third group

Ctrl + 3

Editor management
Focus into previous/next editor group

Ctrl + K then Ctrl + ←  →

Editor management
Move editor left

Ctrl + Shift + Page Up

Editor management
Move editor right

Ctrl + Shift + Page Down

Editor management
ht Move active editor group

Ctrl + K then ←  →

File management
New File

Ctrl + N

File management
Open File

Ctrl + O

File management
Save

Ctrl + S

File management
Save As

Ctrl + ↑   Shift + S

File management
Close

Ctrl + F4

File management
Close All

Ctrl + K then Ctrl + W

File management
Reopen closed editor

Ctrl + ↑   Shift + T

File management
Open next

Ctrl + ⭾ Tab

File management
P Copy path of active file

Ctrl + K then P

File management
R Reveal active file in Explorer

Ctrl + K then R

File management
O Show active file in new window/instance

Ctrl + K then O

Debug
Step into

F11

Display
Toggle editor layout (horizontal/vertical)

↑   Shift + Alt + 1

Display
Zoom in

Ctrl + =

Display
Zoom out

Ctrl + -

Display
Toggle Sidebar visibility

Ctrl + B

Display
Show Explorer / Toggle focus

Ctrl + ↑   Shift + E

Display
Show Search

Ctrl + ↑   Shift + F

Display
Show Source Control

Ctrl + ↑   Shift + G

Display
Show Debug

Ctrl + ↑   Shift + D

Display
Show Extensions

Ctrl + ↑   Shift + X

Display
Replace in files

Ctrl + ↑   Shift + H

Display
Toggle Search details

Ctrl + ↑   Shift + J

Display
Show Output panel

Ctrl + ↑   Shift + U

Display
Open Markdown preview

Ctrl + ↑   Shift + V

Debug
Toggle breakpoint

F9

Debug
Start/Continue

F5

Debug
Stop

↑   Shift + F5

Debug
Step out

↑   Shift + F11

Debug
Step over

F10

Debug
Show hover

Ctrl + K then Ctrl + I

Integrated terminal
Show integrated terminal

Ctrl + `

Integrated terminal
Create new terminal

Ctrl + ↑   Shift + `

Integrated terminal
Paste into active terminal

Ctrl + V

Integrated terminal
Scroll page up

Shift + Page Up

Integrated terminal
Scroll page down

Shift + Page Down

Similar combinations for other applications


RStudio
Select to Start/End
Editing (Console and Source)

↑   Shift + Alt + ↑  ↓


Adobe Photoshop CC
Decrease or increase baseline shift 2 points or pixels. Hold down Ctrl (Windows) or Command (macOS) to decrease/increase by 10
Format type

↑   Shift + Alt + ↑  ↓


Visual Studio Code (Linux)
Insert cursor above / below
Multi-cursor and selection

↑   Shift + Alt + ↑  ↓