visual-studiovisual-studio-2010resharperresharper-5.x

How to Cleanup .Designer files using ReSharper?


Code Cleanup option isn't available in .Designer files. Is there any option to enable this feature?


Solution

  • Remove the *.Designer.cs and/or *Designer.vb option from the Generated file masks area in ReSharper > Options > Code Inspection > Generated Code.

    Be careful with cleaning them up, though, as in some cases doing so might render the code uncompilable.