Automatically surround generated code with #region when implementing interfaces at Visual Studio 2015

前端 未结 2 1204
执念已碎
执念已碎 2021-02-04 00:49

I know that in Visual Studio 2013 and below there is an option to turn on/off automatic surrounding of generated code with #region at Tools > Options >

相关标签:
2条回答
  • 2021-02-04 01:20

    I'd recommend delving into ReSharper templates. It allows you to specify whatever you would like in your template as well as creating a autocomplete as well.

    https://www.jetbrains.com/help/resharper/2016.1/Templates__Index.html

    0 讨论(0)
  • 2021-02-04 01:23

    You may want to look into CodeMaid at the Visual Studio Gallery. According to the description:

    Reorganize the layout of members in a C# file to follow Microsoft’s StyleCop convention, or your own preferences. Automatically generate regions to match. Run on demand or automatically during cleanup.

    From what I can tell, this may give you the feature to want.

    0 讨论(0)
提交回复
热议问题