Automatically Add Regions to Code in Visual Studio

后端 未结 7 1879
轻奢々
轻奢々 2021-02-20 06:09

My team absolutely loves using regions, and with that in mind it\'s pretty much become a de-facto standard in our code. I recently came to realization that I\'m sick of writing

7条回答
  •  醉酒成梦
    2021-02-20 06:57

    Two ways I know:

    Create a snippet as per this MSDN guide.

    Downloading the Visual Studio Extension Productivity Power Tools which has a "Surround" feature. This surrounds the user made selection with the selected snippet, for example #region #endregion or if statement.

提交回复
热议问题