Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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 > Text Editor > C# > Advanced> Surround generated code with #region, but that option seems to be removed in Visual Studio 2015...

Is there a way to turn this back on?

like image 893
Gabriel Duarte Avatar asked Jul 22 '15 00:07

Gabriel Duarte


1 Answers

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.

like image 117
Rob10e Avatar answered Oct 19 '22 06:10

Rob10e