Search...

26 June 2013

Visual Studio - Disable #Region Block Generated When Implementing An Interface

One of the things I have found really annoying when coding in Visual Studio is the fact that when implementing an interface, the editor will wrap the method calls in a #region/#endregion block. So today I was determined to find out how to get rid of them.

It is actually really easy and all you have to do is :

  • Open the TOOLS menu.
  • Select Options...
  • Select the Text Editor option.
  • Select your target language (mine is C#).
  • Select the Advanced node.
  • Deselect the "Surround generated code with #region" option.
  • Click OK

Annoying problem goes away!

No comments: