The following is a summary of the main shortcuts available within Sonic Pi. Please see Section 10.1 for motivation and background.
In this list, we use the following conventions (where Meta is one of Alt on Windows/Linux or Cmd on Mac):
C-a
means hold the Control key then press the a key whilst holding them both at the same time, then releasing.M-r
means hold the Meta key and then press the r key whilst holding them both at the same time, then releasing.S-M-z
means hold the Shift key, then the Meta key, then finally the z key all at the same time, then releasing.C-M-f
means hold the Control key, then press Meta key, finally the f key all at the same time, then releasing.M-r
- Run codeM-s
- Stop codeM-i
- Toggle Help SystemM-p
- Toggle PreferencesM-<
- Switch workspace to the leftM->
- Switch workspace to the rightM-+
- Increase text size of current workspaceM--
- Decrease text size of current workspaceM-a
- Select allM-c
- Copy selection to paste bufferM-]
- Copy selection to paste bufferM-x
- Cut selection to paste bufferC-]
- Cut selection to paste bufferC-k
- Cut to the end of the lineM-v
- Paste from paste buffer to editorC-y
- Paste from paste buffer to editorC-SPACE
- Set mark. Navigation will now manipulate highlighted region. Use C-g
to escape.M-m
- Align all textTab
- Align current line/selection (or complete list)C-l
- Centre editorC-t
- Transpose/swap charactersM-u
- Convert next word (or selection) to upper case. M-l
- Convert next word (or selection) to lower case. C-a
- Move to beginning of lineC-e
- Move to end of lineC-p
- Move to previous lineC-n
- Move to next lineC-f
- Move forward one characterC-b
- Move backward one characterM-f
- Move forward one wordM-b
- Move backward one wordC-M-n
- Move line or selection downC-M-p
- Move line or selection upS-M-u
- Move up 10 linesS-M-d
- Move down 10 linesC-h
- Delete previous characterC-d
- Delete next characterC-i
- Show docs for word under cursorM-z
- UndoS-M-z
- RedoC-g
- EscapeS-M-f
- Toggle fullscreen modeS-M-b
- Toggle visibility of buttonsS-M-l
- Toggle visibility of logS-M-m
- Toggle between light/dark modes