General Shortcuts

Show completions

  • Esc

Insert indent, depending on the preferences of tabs or spaces

  • Tab

New document tab

  • Cmd
  • N

Close tab

  • Cmd
  • W

Save

  • Cmd
  • S

Undo

  • Cmd
  • Z

Redo

  • Cmd
  • Shift
  • Z

Select all

  • Cmd
  • A

Cut

  • Cmd
  • X

Copy

  • Cmd
  • C

Paste

  • Cmd
  • V

Find

  • Cmd
  • F

Find next

  • Cmd
  • G

Find previous

  • Cmd
  • Shift
  • G

Toggle comment

  • Cmd
  • /

Indent selection

  • Cmd
  • [

Dedent selection

  • Cmd
  • ]

Move to previous tab

  • Cmd
  • Shift
  • [

Move to next tab

  • Cmd
  • Shift
  • ]

Toggle preview, in editor only

  • Cmd
  • 4

Clear scrollback, in terminal and playgrounds only

  • Cmd
  • K

Reload, in preview only

  • Cmd
  • R

Back, in preview only

  • Cmd
  • Left

Forward, in preview only

  • Cmd
  • Right

Select the previous character

  • Shift
  • Left

Select the next character

  • Shift
  • Right

Move to the beginning of the current line

  • Cmd
  • Left

Move to the end of the current line

  • Cmd
  • Right

Select to the beginning of the current line

  • Cmd
  • Shift
  • Left

Select to the end of the current line

  • Cmd
  • Shift
  • Right

Move to the beginning of the current word

  • Opt
  • Left

Move to the end of the current word

  • Opt
  • Right

Select to the beginning of the current word

  • Opt
  • Shift
  • Left

Select to the end of the current word

  • Opt
  • Shift
  • Right

Delete to the beginning of the current line

  • Cmd
  • Del

Delete to the beginning of the current word

  • Cmd
  • Opt
  • Del

Delete to the end of the current line

  • Cmd
  • Del (forward)

Delete to the end of the current word

  • Cmd
  • Opt
  • Del (forward)

Move to the beginning of the current line

  • Ctrl
  • A

Select to the beginning of the current line

  • Ctrl
  • Shift
  • A

Move to the end of the current line

  • Ctrl
  • E

Select to the end of the current line

  • Ctrl
  • Shift
  • E

Delete to the end of the current line

  • Ctrl
  • K