SQL document keyboard shortcuts
Use the following keyboard shortcuts when working with a SQL document or stored procedure.
Execution
Code analysis
Navigation
| Name |
Keyboard shortcut |
Description |
| Previous SQL |
Ctrl+Shift+Up Arrow |
Navigates to the previous SQL statement in the execution history. |
| Next SQL |
Ctrl+Shift+Down Arrow |
Navigates to the next SQL statement in the execution history. |
| SQL History |
Ctrl+Alt+H |
Opens the Query History dialog. |
| |
Ctrl+F2 |
Moves to the navigation bar. |
| |
Ctrl+Alt+Page Up |
Switches to the previous open document tab. |
| |
Ctrl+Alt+Page Down |
Switches to the next open document tab. |
| Go To Definition |
F12 |
Navigates to the definition of the selected object. |
| |
Ctrl+R |
Shows or hides additional document views. |
| Move Current Line Up/Down |
Alt+Up/Down Arrow |
Moves the current line up or down by one position. |
| Move Selected Line Up/Down |
Alt+Up/Down Arrow |
Moves the selected line up or down by one position. |
Editing mode and parameters
| Name |
Keyboard shortcut |
Description |
| Edit Parameters |
Ctrl+Shift+P |
Edits parameters for the current query. |
| Redirect Data To Output Window |
Ctrl+Shift+T |
Shows query results as plain text in the Output window. |
IntelliSense and code completion
| Name |
Keyboard shortcut |
Description |
| Comment Selection |
Ctrl+E, C |
Comments out the selected lines. |
| Uncomment Selection |
Ctrl+E, U |
Uncomments the selected lines. |
Code folding
Zooming in and out
| Name |
Keyboard shortcut |
Description |
| |
Ctrl+Plus key |
Increases the font size in the editor. |
| |
Ctrl+Minus key |
Decreases the font size in the editor. |
| |
Ctrl+0 |
Resets the font size to the default value. |
These shortcuts are default shortcuts. All shortcuts can be customized.