Keyboard shortcuts in DataStax Studio

Studio notebook keyboard shortcuts for edit mode and command mode.

Studio notebooks have keyboard shortcuts to increase your proficiency while writing code and content. Mode depends on cursor location:
  • Edit mode when focus is on a cell editor.
  • Command mode when focus is on the cell.

Edit mode keyboard shortcuts

⌥⇧+⌘

Shortcut Description
Ctrl+Shift+? Display Shortcut help.
Esc Unfocus the editor and focus the cell (switch to Command mode).
Shift+Enter Save code and execute cell.
Ctrl+Space Schema aware content assist.
Ctrl+L Toggle line numbers.
Ctrl+/ (Macintosh OS X: ⌘+/) Toggle comment.
Ctrl+H Hide the editor and focus on the cell (switch to Command mode).
Ctrl+Alt+H Add a new cell below and switch to its editor.
Ctrl+Alt+Shift+H Add a new cell above and switch to its editor.
Ctrl+Shift+S Toggle schema view.
Ctrl+Shift+Down (Macintosh OS X: ⇧+⌘+Down) Focus on the cell below, entering its Command mode.
Ctrl+Shift+Up (Macintosh OS X: ⇧+⌘+Up) Focus on the cell above, entering its Command mode.
Alt+Backspace (Macintosh OS X: ⌘+Backspace Delete from the cursor to the beginning of the line.
Alt+Delete (Macintosh OS X: ⌘+Delete Delete from the cursor to the end of the line.

Command mode keyboard shortcuts

Shortcut Description
Ctrl+Shift+? Display Shortcut help.
Enter Focus on the cell's code editor (switch to Edit mode).
Delete (Macintosh OS X: fn+Backspace) Delete the current cell and focus on next available cell.
H Toggle editor visibility.
N Add new cell below and switch to its editor.
Shift+N Add new cell above and switch to its editor.
S Toggle Schema view.
Up Switch to the cell above.
Down Switch to the cell below.
Shift+Up Move current cell up.
Shift+Down Move current cell down.