Shortcuts

Keyboard shortcuts for Parcel

There are a number of keyboard shortcuts you can use to access Parcel functionality. You can see a full list of shortcuts at any time by clicking the Shortcuts button in the bottom right corner of the Code Editor. Any shortcut that uses CMD on Mac will use CTRL on Windows (and vice versa).

General

NameShortcut
Toggle PreferencesCMD/CTRL ,
Toggle SidebarCMD/CTRL SHIFT B

Preview - Code Editor

NameShortcut
Toggle PreviewCMD/CTRL SHIFT D
Toggle Inspect ElementCMD/CTRL SHIFT C
Toggle Focus ModeCMD/CTRL SHIFT M
Refresh PreviewR

Editors

Basic Editing

NameShortcut
Cut lineCMD/CTRL X
Copy lineCMD/CTRL C
Paste lineCMD/CTRL V
Move line upOPTION
Move line downOPTION
Copy line upSHIFT OPTION
Copy line downSHIFT OPTION
Delete lineCMD/CTRL SHIFT K
Indent lineCMD/CTRL ]
Outdent lineCMD/CTRL [
Toggle line commentCMD/CTRL /
Fold allCMD/CTRL K     CMD/CTRL 0
Fold current regionCMD/CTRL K     CMD/CTRL [
Unfold current regionCMD/CTRL K     CMD/CTRL ]
Toggle word wrapOPTION Z
Format documentSHIFT OPTION F

Formatting

NameShortcut
Wrap BoldCMD/CTRL B
Wrap ItalicsCMD/CTRL I
Wrap UnderlineCMD/CTRL U
Insert  CMD/CTRL SHIFT SPACE

Find and replace

NameShortcut
FindCMD/CTRL F
ReplaceCMD/CTRL OPTION F
Find NextCMD/CTRL G
Find PreviousCMD/CTRL SHIFT G
Select all matchesOPTION Enter

Editor management

NameShortcut
Close current editorOPTION W
Increase font sizeCMD/CTRL +
Decrease font sizeCMD/CTRL -

Multi-cursor and selection - Code Editor

NameShortcut
Insert cursorOPTION + Click
Insert cursor aboveCMD/CTRL OPTION
Insert cursor belowCMD/CTRL OPTION
Select current lineCMD/CTRL L
Select all occurrences of current selectionCMD/CTRL SHIFT L
Select next occurrence of current selectionCMD/CTRL D
Select all occurrences of current wordCMD/CTRL F2