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

⌥⇧+⌘

Shortcut Description

Ctrl+Shift+?

Display Shortcut help.

Esc

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

Shift+Enter

  • No highlights - Save code and execute cell.

  • Highlighted statement or statements - Execute only the selected statements. Partial statements are available only in CQL and Spark SQL cells. Select and run only complete statements in Gremlin cells.

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+/ (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.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

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