This article provides a list of the shortcuts included within the micro:bit Python editor to support accessibility and productivity.
General shortcuts (for use anywhere in the Python Editor)
These can be used anywhere in the editor.
Shortcut description | Microsoft Windows | Mac, iOS, iPadOS |
Send project to (flash) micro:bit | Ctrl+Shift+E | Cmd+Shift+E |
Save project | Ctrl+Shift+S | Cmd+Shift+S |
Open search bar | Ctrl+Shift+F | Cmd+Shift+F |
Copy highlighted text or code snippet in Reference or API | Ctrl+C (except in serial console, see below) | Cmd+C |
Cut highlighted text | Ctrl+X | Cmd+X |
Paste copied text or code snippet | Ctrl+V (except in serial console, see below) | Cmd+V |
Note that cut, copy and paste commands can also be accessed by right clicking on your mouse or press and hold on a touch screen device.
Editor shortcuts
These shortcuts can be used within the editor area only:
Shortcut description | Microsoft Windows | Mac, iOS, iPadOS |
Move the cursor in the text | Arrow keys | Arrow keys |
Indent code | Tab | Tab |
Remove a level of indent | Shift+Tab | Shift+Tab |
Manually trigger autocomplete (if available at current cursor position) | Ctrl+Space | Ctrl+Space |
Open parameter help (if available at current cursor position) | Ctrl+Shift+Space | Cmd+Shift+Space |
Show errors in a list that can be navigated with up/down arrows | Ctrl+Shift+M | Cmd+Shift+M |
Tab forwards out of the Editor | Esc then Tab | Esc then Tab |
Tab backwards out of the Editor | Esc then Shift+Tab | Esc then Shift+Tab |
Undo | Ctrl+Z | Cmd+Z |
Redo | Ctrl+Y | Cmd+Y |
Comment/uncomment out a line | Ctrl+/ | Cmd+/ |
Serial shortcuts
These shortcuts work in the serial console area only.
Shortcut description | Microsoft Windows | Mac, iOS, iPadOS |
Interrupt micro:bit program | Ctrl+C | Ctrl+C |
Restart micro:bit program | Ctrl+D | Ctrl+D |
Copy from serial console | Ctrl+Shift+C | Cmd+C |
Paste in serial console | Ctrl+Shift+V | Cmd+V |