Assign code snippet to keyboard shortcut in Visual Studio

前端 未结 4 710
野趣味
野趣味 2021-02-02 10:33

Anyone knows how to assign key shortcut to specific code snippet?

I would like to assign for instance CTRL+K,CTRL+J to a #region snippet.

4条回答
  •  逝去的感伤
    2021-02-02 11:18

    For me the fastest solution was to Import a Folder named "1", then Add the snippet (my name was "block") and mark it in the 1-Folder.

    Then i can insert the snippet by + +

    First Enter chooses 1 (the Folder with MY snippets) and the second Enter chooses my most used snippet (must be alphabetically first)

提交回复
热议问题