Quick Reference Card

A condensed overview of the most important shortcuts and features. Print this page for a handy desk reference.

Note

Shortcuts are shown as macOS / Windows-Linux. On Windows/Linux, replace Cmd with Ctrl and Option with Alt.

Navigation

Shortcut

Action

Cmd+B / Ctrl+B

Go to Definition

Alt+F7

Find Usages

Cmd+Opt+O / Ctrl+Alt+O

Go to Symbol

Shift Shift

Search Everywhere

Alt+O

Switch .res / .resi

Cmd+Alt+B / Ctrl+Alt+B

Go to Implementation

Cmd+U / Ctrl+U

Goto Super (.res -> .resi)

Cmd+Shift+T / Ctrl+Shift+T

Go to Test

Cmd+Alt+H / Ctrl+Alt+H

Call Hierarchy

Shift+F1

External Documentation

Editing

Shortcut

Action

Cmd+Opt+L / Ctrl+Alt+L

Format Code

Alt+Enter

Intentions / Quick Fix

Ctrl+Alt+T

Surround With

Cmd+/ / Ctrl+/

Toggle Comment

Ctrl+Shift+Delete

Unwrap / Remove

Alt+Shift+Up/Down

Move Statement

Shift+Enter

Smart Enter

Cmd+Alt+O / Ctrl+Alt+O

Optimize Imports

Refactoring

Shortcut

Action

Shift+F6

Rename

Cmd+Alt+V / Ctrl+Alt+V

Extract Variable

Cmd+Alt+M / Ctrl+Alt+M

Extract Function

Cmd+Alt+N / Ctrl+Alt+N

Inline

Cmd+F6 / Ctrl+F6

Change Signature

Completion

Input

Result

Cmd+Space / Ctrl+Space

Trigger Completion

expr.switch + Tab

switch expression

expr.pipe + Tab

pipe chain (->)

expr.log + Tab

Console.log(expr)

expr.some + Tab

Some(expr)

let + Tab

let binding

sw + Tab

switch block

comp + Tab

React component

Run & Build

Shortcut

Action

Ctrl Ctrl

Run Anything

Gutter icon

Run file

Alt+6

Problems panel

Cmd+7 / Alt+7

Structure View

Code Generation (Cmd+N)

Generator

Description

Switch Arms

Generate switch cases

Module Type

Generate module type

Make Function

Record constructor

Record Value

Record with defaults

JSON Encoder

JSON.Encode functions

JSON Decoder

JSON.Decode functions