Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove the automatic #region/#endregion tags when implementing an interface in Visual Studio 2005/2008

When user the "Implement Inteface X" context menu feature, the inserted code gets surrounded by a

#region [interfacename] Members #endregion 

pair. I always end up deleting this, is there a way I can permanently turn it off? I had a quick search through the snippets directory, but wasn't sure if this was the right place. There's pp_region.snippet that I guess I could modify, but I got the feeling that would turn off the #region/#endregion completely. I thought I'd ask here before I go doing things that will have me re-installing VS...

like image 272
endian Avatar asked Jan 20 '09 11:01

endian


People also ask

How long does it take to remove a transmission?

The amount of time required to replace a transmission often depends on the type of transmission and the vehicle. It usually only takes a day or two to replace a transmission in most rear wheel vehicles. However, some late-model, front-wheel drive vehicles can be quite labor-intensive and take three to four days.

Is it hard to remove a transmission?

While removing an automatic transmission isn't the most difficult task, it does require a fair amount of preparation in order to pull off successfully. While the removal process will vary depending on the make and model of the vehicle, the general process is fairly universal.


1 Answers

You can turn it off via Tools / Options

Then, in the option-window, you select 'Text Editor', then the language of your choice (C# for ex). Then, you select 'Advanced', and then, you have a checkbox which says: 'Surround generated code with #region'

like image 148
Frederik Gheysels Avatar answered Sep 28 '22 01:09

Frederik Gheysels