Avoid Regions for Interfaces in Visual Studio
Another quick tip related to the use of regions in your C# code – you can turn off the default behavior of wrapping interfaced implementations in regions via the options dialog. Simply go to Tools –> Options –> Text Editor –> C# –> Advanced as shown in the screenshot below, and uncheck the “Surround generated code with #region” checkbox.





Comments
John Sheehan said on 22 Feb 2010 at 11:15 AM
Thanks for posting this. That drove me crazy. I didn't even think to look for an option.
DM said on 22 Feb 2010 at 1:23 PM
Thanks. I'm the same as John, I never thought to look around and fix it, just assumed I had to deal with it. Now I won't have to get annoyed and want to punch my screen anymore.