Shortcuts for code snippets In SSMS I would like to use shortcuts for code snippets, just like in Visual Studio:


  type 'shortcut'; hit TAB -> snippet expanded


In SSMS I need to CTRL+K, CTRL+X, mouse, mouse, find, go back, find, mouse. This is not a shortcut, nothing "short" about it.

I've added this sample snippet to my list of snippets:

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"&gt;
  &lt;CodeSnippet Format="1.0.0"&gt;
    &lt;Header&gt;
      &lt;Title&gt;Transaction&lt;/Title&gt;
      &lt;Author /&gt;
      &lt;Description&gt;Transaction wrapper&lt;/Description&gt;
      &lt;HelpUrl /&gt;
      &lt;SnippetTypes /&gt;
      &lt;Keywords /&gt;
      &lt;Shortcut&gt;tra&lt;/Shortcut&gt;
    &lt;/Header&gt;
    &lt;Snippet&gt;
      &lt;References /&gt;
      &lt;Imports /&gt;
      &lt;Declarations&gt;
        &lt;Literal Editable="true"&gt;
          &lt;ID&gt;TSQL&lt;/ID&gt;
          &lt;Type /&gt;
          &lt;ToolTip /&gt;
          &lt;Default&gt;TSQL&lt;/Default&gt;
          &lt;Function /&gt;
        &lt;/Literal&gt;
      &lt;/Declarations&gt;
      &lt;Code Language="SQL"&gt;&lt;![CDATA[
BEGIN TRANSACTION TRAN1
$TSQL$
ROLLBACK TRANSACTION TRAN1]]&gt;
      &lt;/Code&gt;
    &lt;/Snippet&gt;
  &lt;/CodeSnippet&gt;
&lt;/CodeSnippets&gt;


I can find it via CTRL+K, CTRL+X, but I'm unable to invoke it by tra + TAB shortcut. Am I missing something? Can SSMS even do this?

I'm using SSMS v13.0.16100.1, but database is SQL Server 2014.
No, while the XML schema contains a shortcut element, the fact is that proper shortcut support was never implemented (several of the other elements are not visible outside the XML, either). The following Connect item was closed as "Won't Fix" back in 2013:


Connect #731728 : SQL Server Management Studio 2012 code snippet shortcut


You may be able to raise awareness of this issue on another place where the SSMS team is paying attention: trello. But I'll warn you: even with an accelerated dev and release cycle, they have a lot on their plates, and I'm not sure this could make any significant dent into the top, say, 50 enhancements.

(Personally, I haven't found that I've need to use my mouse to insert snippets - all that is needed is keystrokes. Obviously YMMV.)