Visual Studio Code (Mac)

Basic editing

Unfold (uncollapse) region

⌥ Option + ⌘ Cmd + ]

All hotkeys for Visual Studio Code (Mac)

General
F1 Show Command Palette

↑   Shift + ⌘ Cmd + P then F1

Navigation
Go to file

⌘ Cmd + P

General
New window/instance

↑   Shift + ⌘ Cmd + N

File management
Close

⌘ Cmd + W

General
User Settings

⌘ Cmd + ,

General
Keyboard Shortcuts

⌘ Cmd + K then ⌘ Cmd + S

Basic editing
Cut line (empty selection)

⌘ Cmd + X

Integrated terminal
Copy selection

⌘ Cmd + C

Basic editing
Move line up/down

⌥ Option + ↑  ↓

Basic editing
Copy line up / down

↑   Shift + ⌥ Option + ↑  ↓

Basic editing
Insert line below

⌘ Cmd + ⤶ Enter

Basic editing
Insert line above

↑   Shift + ⌘ Cmd + ⤶ Enter

Basic editing
Jump to matching bracket

↑   Shift + ⌘ Cmd + \

Basic editing
Indent/outdent line

⌘ Cmd + ]

Basic editing
Indent/outdent line

⌘ Cmd + [

Basic editing
Go to beginning of line

Home

Basic editing
Go to end of line

End

Basic editing
Go to beginning of file

⌘ Cmd +

Basic editing
Go to end of file

⌘ Cmd +

Basic editing
Scroll line up/down

Ctrl + ↑  ↓

Basic editing
Scroll page up

Control + Page Up

Basic editing
Scroll page down

Control + Page Down

Basic editing
Fold (collapse) region

⌥ Option + ⌘ Cmd + [

Basic editing
Unfold (uncollapse) region

⌥ Option + ⌘ Cmd + ]

Basic editing
Fold (collapse) all subregions

⌘ Cmd + K then ⌘ Cmd + [

Basic editing
Unfold (uncollapse) all subregions

⌘ Cmd + K then ⌘ Cmd + ]

Basic editing
Fold (collapse) all regions

⌘ Cmd + K then ⌘ Cmd + 0

Basic editing
Unfold (uncollapse) all regions

⌘ Cmd + K then ⌘ Cmd + J

Basic editing
Add line comment

⌘ Cmd + K then ⌘ Cmd + C

Basic editing
Remove line comment

⌘ Cmd + K then ⌘ Cmd + U

Basic editing
Toggle line comment

⌘ Cmd + /

Basic editing
Toggle block comment

↑   Shift + ⌥ Option + A

Basic editing
Toggle word wrap

⌥ Option + Z

Navigation
Show all symbols

⌘ Cmd + T

Navigation
Go to line

Control + G

Navigation
Go to symbol

↑   Shift + ⌘ Cmd + O

Navigation
Show Problems panel

↑   Shift + ⌘ Cmd + M

Navigation
Go to next error or warning

F8

Navigation
Go to previous error or warning

↑   Shift + F8

Navigation
Navigate editor group history

Ctrl + ↑   Shift + ⭾ Tab

Navigation
Go back

Ctrl + -

Navigation
Go forward

Ctrl + ↑   Shift + -

Navigation
Toggle Tab moves focus

Ctrl + ↑   Shift + M

Search and replace
Find

⌘ Cmd + F

Search and replace
Replace

⌥ Option + ⌘ Cmd + F

Search and replace
Find next

⌘ Cmd + G

Search and replace
Find previous

↑   Shift + ⌘ Cmd + G

Search and replace
Select all occurences of Find match

⌥ Option + ⤶ Enter

Search and replace
Add selection to next Find match

⌘ Cmd + D

Search and replace
Move last selection to next Find match

⌘ Cmd + K then ⌘ Cmd + D

Multi-cursor and selection
Insert cursor

⌥ Option + Mouse left click

Multi-cursor and selection
Insert cursor above / below

⌥ Option + ⌘ Cmd + ↑  ↓

Multi-cursor and selection
Undo last cursor operation

⌘ Cmd + U

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

↑   Shift + ⌥ Option + I

Multi-cursor and selection
Select current line

⌘ Cmd + I

Multi-cursor and selection
Select all occurrences of current selection

↑   Shift + ⌘ Cmd + L

Multi-cursor and selection
Select all occurrences of current word

⌘ Cmd + F2

Multi-cursor and selection
Expand selection

Ctrl + ↑   Shift + ⌘ Cmd +

Multi-cursor and selection
Shrink selection

Ctrl + ↑   Shift + ⌘ Cmd +

Multi-cursor and selection
Column (box) selection

↑   Shift + ⌥ Option + Mouse movement

Multi-cursor and selection
Column (box) selection left/right

↑   Shift + ⌥ Option + ⌘ Cmd + ←  →

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

Shift + Option + Command + Page Up

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

Shift + Option + Command + Page Down

Rich languages editing
Trigger suggestion

Ctrl + Space

Rich languages editing
Trigger parameter hints

↑   Shift + ⌘ Cmd + Space

Rich languages editing
Format document

↑   Shift + ⌥ Option + F

Rich languages editing
Format selection

⌘ Cmd + K then ⌘ Cmd + F

Rich languages editing
Go to Definition

F12

Rich languages editing
Peek Definition

⌥ Option + F12

Rich languages editing
12 Open Definition to the side

⌘ Cmd + K then F12

Rich languages editing
Quick Fix

⌘ Cmd + .

Rich languages editing
Show References

↑   Shift + F12

Rich languages editing
Rename Symbol

F2

Rich languages editing
Trim trailing whitespace

⌘ Cmd + K then ⌘ Cmd + X

Rich languages editing
M Change file language

⌘ Cmd + K then M

Editor management
F Close folder

⌘ Cmd + K then F

Editor management
Split editor

⌘ Cmd + \

Editor management
Focus into first group

⌘ Cmd + 1

Editor management
Focus into second group

⌘ Cmd + 2

Editor management
Focus into third group

⌘ Cmd + 3

Editor management
Focus into previous/next editor group

⌘ Cmd + K then ⌘ Cmd + ←  →

Editor management
Move editor left

⌘ Cmd + K then ↑   Shift + ⌘ Cmd +

Editor management
Move editor right

⌘ Cmd + K then ↑   Shift + ⌘ Cmd +

Editor management
ht Move active editor group

⌘ Cmd + K then ←  →

File management
New File

⌘ Cmd + N

File management
Open File

⌘ Cmd + O

File management
Save

⌘ Cmd + S

File management
Save As

↑   Shift + ⌘ Cmd + S

File management
Save All

⌥ Option + ⌘ Cmd + S

File management
Close All

⌘ Cmd + K then ⌘ Cmd + W

File management
Reopen closed editor

Ctrl + ↑   Shift + T

File management
er Keep preview mode editor open

⌘ Cmd + K then ⤶ Enter

File management
Open next

Control + ⭾ Tab

File management
Open previous

Control + ↑   Shift + ⭾ Tab

File management
P Copy path of active file

⌘ Cmd + K then P

File management
R Reveal active file in Explorer

⌘ Cmd + K then R

File management
O Show active file in new window/instance

⌘ Cmd + K then O

Display
Toggle full screen

Control + ⌘ Cmd + F

Display
Toggle editor layout (horizontal/vertical)

⌥ Option + ⌘ Cmd + 1

Display
Zoom in

⌘ Cmd + =

Display
Zoom out

↑   Shift + ⌘ Cmd + -

Display
Toggle Sidebar visibility

⌘ Cmd + B

Display
Show Explorer / Toggle focus

↑   Shift + ⌘ Cmd + E

Display
Show Search

↑   Shift + ⌘ Cmd + F

Display
Show Source Control

Control + ↑   Shift + G

Display
Show Debug

↑   Shift + ⌘ Cmd + D

Display
Show Extensions

↑   Shift + ⌘ Cmd + X

Display
Replace in files

↑   Shift + ⌘ Cmd + H

Display
Toggle Search details

↑   Shift + ⌘ Cmd + J

Display
Show Output panel

↑   Shift + ⌘ Cmd + U

Display
Open Markdown preview

↑   Shift + ⌘ Cmd + V

Display
V Open Markdown preview to the side

⌘ Cmd + K then V

Display
Z Zen Mode (Esc Esc to exit)

⌘ Cmd + K then Z

Debug
Toggle breakpoint

F9

Debug
Start/Continue

F5

Debug
Stop

↑   Shift + F5

Debug
Step into

F11

Debug
Step out

↑   Shift + F11

Debug
Step over

F10

Debug
Show hover

⌘ Cmd + K then ⌘ Cmd + I

Integrated terminal
Show integrated terminal

Control + `

Integrated terminal
Create new terminal

Control + ↑   Shift + `

Integrated terminal
Scroll up/down

⌘ Cmd + ↑  ↓

Integrated terminal
Scroll page up

Page Up

Integrated terminal
Scroll page down

Page Down

Integrated terminal
Scroll to top

⌘ Cmd + Home

Integrated terminal
Scroll to bottom

⌘ Cmd + End

Similar combinations for other applications


Adobe Illustrator (Mac)
Select the object above the current selection
Work with selections

⌥ Option + ⌘ Cmd + ]


Twist
Switch teams (forward)
Navigation (macOS)

⌥ Option + ⌘ Cmd + ]


Adobe Premiere Pro (Mac)
Next Object Above
Marker

⌥ Option + ⌘ Cmd + ]


Pixelmator Pro
Send selected layer(s) to the back
Work with layers

⌥ Option + ⌘ Cmd + ]


Xcode
Move Line Down
Editor menu - Source code

⌥ Option + ⌘ Cmd + ]