To create a new shortcut,
Go to Tools > Options > Environment > Keyboard > Query Shortcuts
For example, you can create a shortcut for:
Syntax
"Ctrl + 3 " : SELECT * FROM (single space after from keyword)
Now just write a table name in new query and press "ctrl + 3" and query will executed.

If you are working in any query or store procedure this will help you a lot to check the data in the specific table.
Below are some more examples of shortcut.
- "ctrl + 3" for all the records in table.
- "ctrl + 4" for count a records in specific table.
- "ctrl + 5" to get text of store procedure of function.
You have still more shortcuts to create. Now make your own shortcut and improve your productivity.

Suresh MolabantiPosted Sep 26, 2016, 8:36 AM
Excellent
Midhun TpPosted Sep 25, 2016, 8:30 AM
Excellent one
Saddamhusen UadanwalaPosted Sep 24, 2016, 12:50 AM
As you can see in last image on "ctrl + 5" just write sp_helptext (put one space after text) and just restart your studio.
Gagan SharmaPosted Sep 23, 2016, 9:56 AM
How do i create Sp_Helptext shortcut in SQL Server 2016 ? Pls suggest..