Learn about keyboard shortcuts that help you work quickly in Safety Signal. These shortcuts are available for all of Vault’s supported browsers, but not on mobile devices.
SQL Editor Navigation
The following shortcuts apply to the SQL Editor:
Action | Windows Shortcut | Mac OS Shortcut | Notes |
---|---|---|---|
Add Next Occurrence to Selection | Ctrl + d | Cmd + d | Extends the selection to the next occurrence matching the selected syntax. |
Delete Selected Lines | Shift + Ctrl + k | Shift + Cmd + k | Deletes the selected lines. |
Duplicate Selected Lines Above | Alt + Shift + Up Arrow | Opt + Shift + Up Arrow | Creates a copy of the selected lines and pastes them above the selected lines. |
Duplicate Selected Lines Below | Alt + Shift + Down Arrow | Opt + Shift + Down Arrow | Creates a copy of the selected lines and pastes them below the selected lines. |
Find Next Occurrence | Ctrl + g | Cmd + g | Opens the search panel if it hasn’t been used already. After you enter syntax in the panel, the shortcut finds the next occurrence matching the entered syntax. |
Find Previous Occurrence | Shift + F3 or Shift + Ctrl + g | Shift + Cmd + g | Opens the search panel if it hasn’t been used already. After you enter syntax in the panel, the shortcut finds the previous occurrence matching the entered syntax. |
Indent Selected Lines | Ctrl + ] | Cmd + ] | Adds one unit of indentation (2 spaces) to all selected lines. |
Insert New Line Below | Ctrl + Enter | Shift + Enter | Creates a new, indented line below the current line. |
Move Selected Lines Down One Line | Alt + Down Arrow | Opt + Down Arrow | Moves the selected lines down one line. |
Move Selected Lines Up One Line | Alt + Up Arrow | Opt + Up Arrow | Moves the selected lines up one line. |
Move to Next Syntax | Alt + Right Arrow | Opt + Right Arrow | Moves the cursor to the next syntax element. |
Move to Previous Syntax | Alt + Left Arrow | Opt + Left Arrow | Moves the cursor to the previous syntax element. |
Open Go To Line | Alt + Mod + g | Opt + Cmd + g | Opens the Go To Line panel, which allows you to enter and jump to the specified line number. You can navigate to a specific column within a line using a colon and number. For example, 1:10 directs you to the first line, tenth column.You can also navigate a number of lines away from the current line using + (plus) or - (minus). For example, +10 directs you ten lines after the current line and -10 directs you ten lines before the current line. |
Open Search Panel | Ctrl + f | Cmd + f | Opens the SQL Editor search panel. |
Redo | Shift + Ctrl + z | Shift + Cmd + z | Redoes the most recent action. |
Remove Indent for Selected Lines | Ctrl + [ | Cmd + [ | Removes one unit of indentation (2 spaces) from all selected lines. |
Select Entire Line | Alt + L | Ctrl + L | Expands the selection to cover the entire line. |
Select Next Syntax Larger Than Current | Ctrl + I | Cmd + I | Selects the next syntax expression that is larger than the selection. |
Toggle Comment for Selection | Alt + Shift + / | Opt + Shift + / | Comments or uncomments the selected lines. |
Undo | Ctrl + z | Cmd + z | Undoes the most recent action. |
SQL Editor Tab Focus
The Tab key can be used for indentation in the SQL Editor as well as to navigate between browser elements:
- In the SQL Editor:
- To indent a line of code, press Tab.
- To remove indentation from a line of code, press Shift + Tab.
- To navigate between browser elements on the page, press Esc + Tab. You must press the Tab key within two seconds of Esc.
Additional Resources
Learn more about keyboard shortcuts in: