Surround code block with curly braces?

后端 未结 6 979
Happy的楠姐
Happy的楠姐 2021-02-18 22:53

Is there a shortcut to surround a given (selected) code block with curly braces?

VS 2015 + R# 2016.1

6条回答
  •  死守一世寂寞
    2021-02-18 23:24

    AlexandreG's solution works great. From my side I can tell you have to save the file with .snippet extension. And 2nd tip: if you want to save a snippets together with system snippets you must save them here: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC#\Snippets\1033\Visual C# or copy location from snippets file dialog

提交回复
热议问题