Keyboard shortcuts in DataStax Studio

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

  • Ctrl+Shift+?: Open Shortcut help.

  • Esc: Unfocus the editor and focus the cell (switch to Command mode).

  • Shift+Enter:

    • When no lines are selected (highlighted): Save code and execute cell.

    • One or more selected statements: Execute only the selected statements. Only CQL and Spark SQL cells support partial statement execution. Gremlin cells must run complete statements.

  • Ctrl+Space: Schema aware content assist provides smart suggestions based on your data model. The proposed content depends on the selected keyspace.

  • Ctrl+L: Toggle line numbers.

  • Ctrl+/ (MacOS: Command+/): 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 Arrow (MacOS: Command+Shift+Down Arrow): Focus on the cell below, entering its Command mode.

  • Ctrl+Shift+Up Arrow (MacOS: Command+Shift+Up Arrow): Focus on the cell above, entering its Command mode.

  • Alt+Backspace (MacOS: Command+Backspace): Delete from the cursor to the beginning of the line.

  • Alt+Delete (MacOS: Command+Delete): Delete from the cursor to the end of the line.

Command mode keyboard shortcuts

  • Ctrl+Shift+?: Open Shortcut help.

  • Enter: Focus on the cell’s code editor (switch to Edit mode).

  • Delete (MacOS: 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 Arrow: Switch to the cell above.

  • Down Arrow: Switch to the cell below.

  • Shift+Up Arrow: Move current cell up.

  • Shift+Down Arrow: Move current cell down.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2025 DataStax, an IBM Company | Privacy policy | Terms of use | Manage Privacy Choices

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com