Brackets

Enjoy this cheat sheet at its fullest within Dash, the macOS documentation browser.

View / Window Manipulation

CMD+SHIFT+H

Toggle sidebar

CMD+M

Minimize

File and Folders

CMD+N

New file

CMD+O

Open file

CMD+ALT+O

Open folder

CMD+W

Close file

CMD+SHIFT+W

Close all files

Find

CMD+F

Find in file

CMD+SHIFT+F

Find in project

CMD+G

Find next

CMD+SHIFT+G

Find previous

CMD+CTRL+G

Find all and select

CMD+B

Add next match to selection

CMD+SHIFT+B

Skip and add next match to selection

Replace

CMD+ALT+F

Replace

CMD+ALT+SHIFT+F

Replace in project

Folding

ALT+1

Collapse all

ALT+SHIFT+1

Expand all

CMD+ALT+[

Collapse current

CMD+ALT+]

Expand current

Basic Editing

CMD+C

Copy

CMD+X

Cut

CMD+V

Paste

CMD+Z

Undo

CMD+SHIFT+Z

Redo

Line Manipulation

CMD+]

Indent current line or selection

CMD+[

Outdent current line or selection

CMD+Return

Insert newline after current line or selection

CMD+SHIFT+Return

Insert newline before current line or selection

CTRL+SHIFT+D

Delete current line or selection

CMD+Backspace

Delete to line start

CMD+Delete

Delete to line end

CTRL+SHIFT+Arrow Up

Move current line or selection up

CTRL+SHIFT+Arrow Down

Move current line or selection down

CMD+D

Duplicate current line or selection

CMD+ALT+L

Split selection into lines

CMD+/

Toggle line comment

CMD+SHIFT+/

Toggle block comment

Word Manipulation

CTRL+T

Transpose characters either side of the cursor

ALT+Backspace

Delete text to beginning of word

ALT+Delete

Delete text to end of word

Cursors

ALT+SHIFT+Arrow Down

Add cursor to next line

ALT+SHIFT+Arrow Up

Add cursor to previous line

Selection

CMD+A

Select all

CTRL+L

Select current line

ALT+SHIFT+Arrow Left

Select to beginning of word

ALT+SHIFT+Arrow Right

Select to end of word

CMD+SHIFT+Arrow Left

Select to first character of line

CMD+SHIFT+Arrow Right

Select to last character of line

CMD+SHIFT+Arrow Up

Select to beginning of document

CMD+SHIFT+Arrow Down

Select to end of document

CMD+U

Undo selection

CMD+SHIFT+U

Redo selection

Hints

CTRL+Space

Show code hints

CTRL+SHIFT+Space

Show parameter hint

Live Preview

CMD+ALT+P

Enable live preview

CMD+SHIFT+C

Toggle live preview highlight

CMD+SHIFT+R

Force reload of live preview

Debugging

CMD+ALT+I

Show developer tools

CMD+R

Reload with extensions

CMD+CTRL-R

Reload without extensions

Miscellaneous

F1

Help

F2

Rename file

CMD+Plus

Increase font size

CMD+Minus

Decrease font size

CMD+0

Restore font size to default

Notes