SQL Prompt 10

Using keyboard shortcuts

Using keyboard shortcuts to select and insert code suggestions in SQL Prompt can dramatically increase the speed of writing your SQL code. For ease of reference, the keyboard shortcuts have been grouped by functionality.

Code Completion

ActionShortcut
Refresh SuggestionsCtrl+Shift+D
Toggle Suggestions On/OffCtrl+Shift+P
Show SuggestionsCtrl+Space
Switch to/from column pickerCtrl + Left arrow / Ctrl + Right arrow
Move up/down suggestions listUp arrow / Down arrow
Move up/down the suggestions box filtersCtrl + Up arrow / Ctrl + Down arrow

Navigation

ActionShortcut
Summarize ScriptCtrl+B,Ctrl+S
Find Unused Variables and ParametersCtrl+B,Ctrl+F
Script OBJECT as ALTERF12
Select in Object Explorer (SSMS only)Ctrl+F12
Execute Current StatementShift+F5
Execute Current BatchAlt+Shift+F5
Execute To CursorCtrl+Shift+F5

Formatting and Refactoring

ActionShortcut
Format SQLCtrl+K, Ctrl+Y
Apply Casing OptionsCtrl+B,Ctrl+U
Qualify Object NamesCtrl+B,Ctrl+Q
Expand WildcardsCtrl+B,Ctrl+W
Insert SemicolonsCtrl+B,Ctrl+C
Add/Remove Square BracketsCtrl+B,Ctrl+B
Inline Stored ProcedureCtrl+B,Ctrl+I
Encapsulate as new stored procedureCtrl+B,Ctrl+E
Rename Scripted ObjectF2 (Shift+F2 in Visual Studio)

Code analysis

ActionShortcut
Toggle Code Analysis On/OffCtrl+Shift+A

Opens issue details
(cursor must be in the green squiggling area)

Ctrl

Miscellaneous

ActionShortcut

Open action list
(some text must be selected beforehand)

Ctrl
Browse open tabsCtrl + Q

Didn't find what you were looking for?