SQL Document Shortcut Keys

Use following shortcut keys when working with an SQL document or stored procedure.

Icon Name Shortcut Keys Action
Execute F5 Execute a query associated with the current document.
Execute Current Statement F8 Execute the current statement.
Query History Ctrl+Alt+H Opens the Query History dialog.
Edit Parameters Ctrl+Shift+P Edit parameters for the current query.
List Members Ctrl+J Display a list of members.
Complete Word Ctrl+Space Complete the current word.
Complete Word Ctrl+K, W Complete the current word.
Complete Word Alt+Right Arrow Complete the current word.
Parameter Info Ctrl+Shift+Space Display information about function or procedure parameters.
Parameter Info Ctrl+K, P Display information about function or procedure parameters.
Insert Snippet Ctrl+K, X Insert a snippet.
Insert Template Ctrl+K, Ctrl+X Insert a predefined code template.
Quick Info Ctrl+K, I Display a tooltip with relevant information for the identifier at the cursor.
Quick Info Ctrl+K, Ctrl+I Display a tooltip with relevant information for the identifier at the cursor.
Comment Selection Ctrl+E, C Comment selection.
Uncomment Selection Ctrl+E, U Uncomment selection.
— Toggle Outlining Expansion Ctrl+M, M Expands or collapses the currently selected region.
— Toggle All Outlining Ctrl+M, L Expands or collapses all outlining regions.
— Stop Outlining Ctrl+M, P Removes all outlining in the document.
— — Ctrl+F2 Switch to the navigation bar.
— — Ctrl+Alt+Pg Up Switch from the current document tab to the previous tab.
— — Ctrl+Alt+Pg Down Switch form the current document tab to the next tab.
  Jump Between Syntax Pairs Ctrl+F12 Jump between syntax pairs.
— — Ctrl+R Hide/Show additional document views.
— — Ctrl+L Runs the Query Profiler.
  Move Current Line Up/Down Alt+Up/Down Arrow Move the current line up or down by one position.
  Move Selected Line Up/Down Alt+Up/Down Arrow Move the selected line up or down by one position.

These shortcuts are default shortcuts. All shortcuts can be customized.