Upon code clean up (profile: StyleCop) it always creates regions for constructors, properties and so on...
#region Constructors and Destructors
public IpDiagnosticsService()
{
// : base()
// NOP. Required for serializer.
}
public IpDiagnosticsService(string applicationName, SPFarm farm) : base(applicationName, farm)
{
// NOP
}
#endregion
#region Properties
// ...omitted.
#endregion
Awesome. I don't want that. How do it turn this off? Couldn't find any option for that.
Select ReSharper | Options from the main menu or press Alt+R O . Go to the cleanup profiles settings page: Code Editing | Code Cleanup | Profiles. Select which Code Cleanup profile should be applied on save and click Set as default (the default profile is also used for silent cleanup).
Code cleanup refers to the act of writing code so that it cleans up leftover data structures and other unwanted materials from memory and the filesystem. It is sometimes treated as a synonym of refactoring code, which involves making the source code itself easier to understand, maintain, and modify.
Right-click on the project or solution name in Solution Explorer, select Analyze and Code Cleanup, and then select Run Code Cleanup.
Resharper depends on an XML file that defines the layout of the files. It can be found under Resharper -> Options -> Code Editing -> C# -> Type Members Layout.
Remove the <Group Region="*"/>
elements to remove the region creation. More details about the file format can be found here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With