Azure Cosmos DB Data Explorer shortcuts

Keyboard shortcuts offer a quick way to navigate websites and enable users to work more efficiently. Instead of using a mouse, you use keys, or combinations of keys, to run tasks. This article lists the Windows and Mac keyboard shortcuts that work in the Data Explorer within the Azure portal. You no longer have to worry about losing progress by accidentally hitting F5.

The letters in this article correspond to keys on your keyboard. For example, to use the G+N shortcut, select the G key, then select N. If the shortcut is Ctrl+K Ctrl+X, continuously select Ctrl, then select K, release K and press X. If the command is Alt+N P, select Alt+N, deselect both, and then select P.

Keyboard shortcuts for the toolbar

These shortcuts are used with the toolbar present in the Data Explorer.

Windows macOS
Close tab Ctrl+Alt+W Cmd+Opt+W
Discard edit Query/Item/Stored Procedure/Trigger/UDF Esc Esc
Download Query to Disk Ctrl+Shift+S Cmd+Shift+S
Enable/Disable Copilot Ctrl+P Cmd+P
Execute Query/Stored Procedure Shift+Enter or F5 Shift+Return or F5
New Container Alt+N C Opt+N C
New Database Alt+N D Opt+N D
New Item Alt+N I Opt+N I
New Query Ctrl+J or Alt+N Q Cmd+J or Opt+N Q
New Stored Procedure (SPROC) Alt+N P Opt+N P
New Trigger Alt+N T Opt+N T
New User Defined Function (UDF) Alt+N F Opt+N F
Open Query Ctrl+O Cmd+O
Open Query from Disk in Query editor Ctrl+Shift+O Cmd+Shift+O
Run query Shift+Enter or F5 Shift+Return or F5
Save Query Ctrl+S Cmd+S
Switch to Tab on the left Ctrl+Shift+F6 or Ctrl+Alt+[ Cmd+Shift+F6 or Cmd+Opt+[
Switch to Tab on the right Ctrl+Alt+] or Ctrl+F6 Cmd+Opt+] or Cmd+F6
Update Item/SPROC/UDF/Trigger Ctrl+S Cmd+S

Keyboard shortcuts for filters and items

These shortcuts are used when applying filters or working with items.

Windows macOS
Apply Filter Enter Return
Clear Filter Ctrl+Shift+C Cmd+Shift+C
Close Filter Esc Esc
Delete Item Alt+D Opt+D
Discard edit Item Esc Esc
New Item Alt+N I Opt+N I
Move cursor from item to filter Ctrl+Shift+F Cmd+Shift+F
Open Edit Filter Ctrl+Shift+F Cmd+Shift+F
Open properties menu Ctrl+Shift+O Cmd+Shift+O
Select filter from menu Ctrl+Down Arrow Cmd+Down Arrow
Update Item Ctrl+S Cmd+S

Keyboard shortcuts for the query editor

These shortcuts are used within the query editor.

Windows macOS
Add new query tab Ctrl+J or Alt+N Q Cmd+J or Opt+N Q
Cancel Query Esc Esc
Close tab Ctrl+Alt+W Cmd+Opt+W
Copy line down Shift+Alt+Down Arrow Shift+Opt+Down Arrow
Comment line Ctrl+K Ctrl+C Cmd+K Cmd+C
Copy line up Shift+Alt+Up Arrow Shift+Opt+Up Arrow
Copy query clipboard Shift+Alt+C Shift+Opt+C
Cut the selected text Ctrl+X Cmd+X
Delete the current line Ctrl+Shift+K Cmd+Shift+K
Download Query to Disk Ctrl+Shift+S Cmd+Shift+S
Duplicate the current query Ctrl+Alt+D Cmd+Opt+D
Enable Copilot/Disable Copilot Ctrl+P Cmd+P
Find Ctrl+F Cmd+F
Format all Shift+Alt+F Shift+Opt+F
Format selection Ctrl+K Ctrl+F Cmd+K Cmd+F
Go to line Ctrl+G Cmd+G
Indent the current line or the selected lines Tab Tab
Insert line prior to current row Ctrl+Shift+Enter Cmd+Shift+Return
Insert Line after current row Ctrl+Enter Cmd+Return
Move line down Alt+Down Arrow Opt+Down Arrow
Move line up Alt+Up Arrow Opt+Up Arrow
Move the cursor to the end of the line Shift+Alt+I Shift+Opt+I
Move the cursor to the next word Ctrl+Right Cmd+Right
Move the cursor to the previous word Ctrl+Left Cmd+Left
Open Query Ctrl+O Cmd+O
Open Query from Disk Ctrl+Shift+O Cmd+Shift+O
Paste the copied or cut text Ctrl+V Cmd+V
Restore previous undone edit Ctrl+Shift+Z Cmd+Shift+Z
Run Query/Stored Procedure Shift+Enter or F5 Shift+Return or F5
Save Query to Disk Ctrl+Shift+S Cmd+Shift+S
Select all the text in the query editor Ctrl+A Cmd+A
Select the text from the cursor to the next word Ctrl+Shift+Right Cmd+Shift+Right
Select the text from the cursor to the previous word Ctrl+Shift+Left Cmd+Shift+Left
Show Editor Context Menu Shift+F10 Shift+F10
Switch to tab on the left Ctrl+Shift+F6 or Ctrl+Alt+[ Cmd+Shift+F6 or Cmd+Opt+[
Switch to tab on the right Ctrl+Alt+] or Ctrl+F6 Cmd+Opt+] or Cmd+F6
Toggle comment on/off Ctrl+/ Cmd+/
Uncomment line Ctrl+K Ctrl+U Cmd+K Ctrl+U
Undo last editing Ctrl+Z Cmd+Z
Unindent the current line or the selected lines Shift+Tab Shift+Tab

Comments

Use the Feedback icon in the command bar of the Data Explorer to give the product team any comments you have about the keyboard shortcuts.