Keyboard Shortcuts
This following table shows the keyboard shortcuts for commands in the SQL Worksheet.
Windows | MacOS | Description |
---|---|---|
Ctrl + Enter |
Cmd + Enter |
Run the code as query. |
Alt + Tab |
Option + Tab |
Focus next element. |
Ctrl+ Esc / Escape |
Cmd + Esc / Escape |
Remove focus from editor. |
Ctrl + Down Arrow |
Cmd + Down Arrow |
Move to the next SQL code from history. |
Ctrl + Up Arrow |
Cmd + Up Arrow |
Move to the previous SQL code from history. |
Ctrl + S |
Cmd + S |
Save the current worksheet. |
Ctrl + O |
Cmd + O |
Open the worksheet browser dialog. |
Ctrl + I |
Cmd + I |
Download the content of the editor. |
F1 | Fn + F1 | Open the help topic. |
Shift + Esc |
Shift + Esc |
Focus previous element. |
F5 |
Fn + F5 |
Run code as script. |
F6 |
Fn + F6 |
Show Autotrace. |
F10 |
Fn + F10 |
Show Explain Plan. |
F11 |
Fn + F11 |
Create a chart. |
Ctrl + B |
Cmd + B |
Open the "Convert Case" drop-down list. |
Ctrl + F7 |
Cmd + Fn + F7 |
Format code in the editor. |
Ctrl + Space |
Ctrl + Space |
Autocomplete code (shows hints). |
The following table shows the keyboard shortcuts for commands in the Command Palette.
Windows | MacOS | Description |
---|---|---|
Ctrl + Alt + Up | Cmd + Option + Up | Add Cursor Above |
Ctrl + Alt + Down | Cmd + Option + Down | Add Cursor Below |
Shift + Alt + I | Shift + Option + I | Add Cursors to Line Ends |
Ctrl + K Ctrl + C | Cmd + K Cmd + C | Add Line Comment |
Ctrl + D | Cmd + D | Add Selection To Next Find Match |
Shift + Alt + Down | Shift + Option + Down | Copy Line Down |
Shift + Alt + Up | Shift + Option + Up | Copy Line Up |
Ctrl + U | Cmd + U | Cursor Undo |
- | Cmd + Backspace | Delete All Left |
- | Ctrl + K | Delete All Right |
Ctrl + Shift + K | Shift + Cmd + K | Delete Line |
Shift + Alt + Right | Shift + Ctrl + Cmd + Right | Expand Selection |
Ctrl + F | Cmd + F | Find |
Enter | Enter | Find Next |
Ctrl + F3 | Cmd + Fn + F3 | Find Next Selection |
Shift + Enter | Shift + Enter | Find Previous |
Ctrl + Shift + F3 | Shift + Cmd + Fn + F3 | Find Previous Selection |
- | Cmd + E | Find With Selection |
Ctrl + Shift + [ | Option + Cmd + [ | Fold |
Ctrl + K Ctrl + 0 | Cmd + K Cmd + 0 | Fold All |
Ctrl + K Ctrl + / | Cmd + K Cmd + / | Fold All Block Comments |
Ctrl + K Ctrl + 8 | Cmd + K Cmd + 8 | Fold All Regions |
Ctrl + K Ctrl + 1 | Cmd + K Cmd + 1 | Fold Level 1 |
Ctrl + K Ctrl + 2 | Cmd + K Cmd + 2 | Fold Level 2 |
Ctrl + K Ctrl + 3 | Cmd + K Cmd + 3 | Fold Level 3 |
Ctrl + K Ctrl + 4 | Cmd + K Cmd + 4 | Fold Level 4 |
Ctrl + K Ctrl + 5 | Cmd + K Cmd + 5 | Fold Level 5 |
Ctrl + K Ctrl + 6 | Cmd + K Cmd + 6 | Fold Level 6 |
Ctrl + K Ctrl + 7 | Cmd + K Cmd + 7 | Fold Level 7 |
Ctrl + K Ctrl + [ | Cmd + K Cmd + [ | Fold Recursively |
Ctrl + Shift + \ | Shift + Cmd + \ | Go to Bracket |
Ctrl + G | Ctrl + G | Go to Line... |
Alt + F8 | Option + Fn + F8 | Go to Next Problem(Error, Warning, Info) |
F8 | Fn + F8 | Go to Next Problem in Files (Error, Warning, Info) |
F7 | Fn + F7 | Go to Next Symbol Highlight |
Shift + Alt + F8 | Shift + Option + Fn + F8 | Go to Previous Problem (Error, Warning, Info) |
Shift + F8 | Shift + Fn + F8 | Go to Previous Problem in Files (Error, Warning, Info) |
Shift + F7 | Shift + Fn + F7 | Go to Previous Symbol Highlight |
Ctrl + ] | Cmd + ] | Indent Line |
Ctrl + Shift + Enter | Shift + Cmd + Enter | Insert Line Above |
- | Ctrl + J | Join Lines |
Ctrl + K Ctrl + D | Cmd + K Cmd + D | Move Last Selection To Next Find Match |
Alt + Down | Option + Down | Move Line Down |
Alt + Up | Option + Up | Move Line up |
F1 (All browsers) Ctrl + Shift + P (Google Chrome only) |
Fn + F1 | Open Command palette |
Ctrl + [ | Cmd + [ | Outdent Line |
Ctrl + K Ctrl + U | Cmd + K Cmd + U | Remove Line Comment |
Ctrl + H | Option + Cmd + F | Replace |
Ctrl + Shift + . | Shift + Cmd + . | Replace with Next Value |
Ctrl + Shift + , | Shift + Cmd + , | Replace with Previous Value |
Ctrl + Shift + L | Shift + Cmd + L | Select All Occurrences of Find Match |
Alt + F1 | Option + Fn + F1 | Show Accessibility Help |
Shift + F10 | Shift + Fn + F10 | Show Editor Context Menu |
Ctrl + K Ctrl + I | Cmd + K Cmd + I | Show Hover |
Shift + Alt + Left | Shift + Ctrl + Cmd + Left | Shrink Selection |
Shift + Alt + A | Shift + Option + A | Toggle Block Comment |
Ctrl + K Ctrl + L | Cmd + K Cmd + L | Toggle Fold |
Ctrl + / | Cmd + / | Toggle Line Comment |
Ctrl + M | Shift + Ctrl + M | Toggle Tab Key Moves Focus |
- | Shift + Ctrl + T | Transpose Letters |
Ctrl + Space | Ctrl + Space | Trigger Suggest |
Ctrl + K Ctrl + X | Cmd + K Cmd + X | Trim Trailing Whitespace |
Ctrl + Shift + ] | Option + Cmd + ] | Unfold |
Ctrl + K Ctrl + J | Cmd + K Cmd + J | Unfold All |
Ctrl + K Ctrl + 9 | Cmd + K Cmd + 9 | Unfold All regions |
Ctrl + K Ctrl + ] | Cmd + K Cmd + ] | Unfold Recursively |