Skip to content

Latest commit

 

History

History
85 lines (74 loc) · 2.91 KB

SHORTCUTS-MAC.md

File metadata and controls

85 lines (74 loc) · 2.91 KB

Scrimba logo

Mac: Scrimba keyboard shortcuts

Command Action
Cmd + S Execute code
Cmd + B Toggle mini browser focus
Cmd + Shift + U Show/hide mini browser
Cmd + Shift + Y Show/hide console
Command Action
Shift + Cmd + L Select all instances (highlight or cursor position)
Shift + Alt + right arrow key Expand selection to select word
Shift + Alt highlight code Column (box) selection
Shift + right arrow key Select one character at a time
Shift + down arrow key Select line at a time
Shift + Cmd + right arrow key Select whole symbol
Command Action
Alt + click Add cursor at click position
Shift + Alt + I Insert cursor at the end of each line selected / makes empty spaces visible
Cmd + Alt + up/down arrow key Insert cursor above/below
Cmd + Shift + Enter Create new line above cursor
Cmd + Enter Create new line below cursor
Command Action
Cmd + X Cut line (empty selection)
Cmd + C Copy line (empty selection)
Cmd + V Paste copied content
Alt + up/down arrow key Move line up/down
Shift + Alt + up/down arrow key Copy line up/down
Cmd + Shift + \ Navigate to matching bracket
Cmd + ] / [ Indent/outdent line
Cmd + Z Undo
Command Action
Cmd + F Find
Option + Cmd + F Replace
F3 / Shift + F3 Find next/previous
Alt + Enter Select occurrence of Find Match
Option + Cmd + C/W/R Toggle case-sensitive / whole word / regular expression
Ctrl + G Navigate to line number
Cmd + Shift + O Navigate to symbol
Cmd + right/left arrow key Navigate to start/end of symbol
Command Action
Cmd + / or Cmd + K Cmd + C Comment/uncomment line (Empty selection or highlight)
Cmd + / or Cmd + K Cmd + U Uncomment (Empty selection or highlight)
Shift + Alt + A Block comment (Empty selection or highlight)
Command Action
Cmd + space Trigger suggestions
Shift + Alt + F Format selection
Alt + F12 Peek definition
Cmd + K F12 Navigate to definition
Hold Cmd then hover over symbol Mini peek definition
Shift + F12 Show references