Keyboard shortcuts

⌨️ General

Mac
Windows & Linux
Action
⌘P
Ctrl+P
Show/Hide command palette
If you need to quickly look up keyboard shortcuts in Deepnote, just start typing Keyboard shortcuts in the command palette.

🧱 Block actions

Mac
Windows & Linux
Action
⇧↡
Shift+Enter
Run current block and move cursor to next block
(creates a new cell if at the end of the notebook)
βŒ˜β†΅
Ctrl+Enter
Run current block
βŒ˜β‡§β†΅
Ctrl+Shift+Enter
Execute all block
βŒ˜β‡§C
Ctrl+Shift+C
Stop execution
βŒ˜β‡§H
Ctrl+Shift+H
Hide/Show block output
⌘M
Ctrl+M
Toggle block type between code and text
βŒ˜β‡§βŒ«
Ctrl+Shift+Backspace
Delete block
βŒ₯⇧↑
Alt+Shift+Up
Move block up
βŒ₯⇧↓
Alt+Shift+Down
Move block down
βŒ˜β‡§D
Ctrl+Shift+D
Duplicate block
⌘K
Ctrl+K
Add new code block below current one
⌘J
Ctrl+J
Add new text block below current one
⌘Z
Ctrl+Z
Undo
βŒ˜β‡§Z
Ctrl+Y
Redo

✍️ Code editing

Mac
Windows & Linux
Action
⌘D
Ctrl+D
Expand selection (multiple cursors)
Tab
Tab
When caret is at the beginning of a line, add indent
Otherwise, show autocomplete suggestions
⇧Tab
Shift+Tab
Decrease indent
⌘/
Ctrl+/
Toggle line/selection comment
βŒ₯↓
Alt+Down
Move lines down
βŒ₯↑
Alt+Up
Move lines up
​