How do I setup R# code cleanup options to be StyleCop compliant?

Coordinator
May 15, 2011 at 5:07 PM
Edited Jun 11, 2011 at 2:50 PM

From version 4.5.14.0 go to:

ReSharper->Options->StyleCop.

If your ReSharper options are not set correctly for StyleCop then you'll see a warning that states "Your ReSharper C# code style options are not fully compatible with StyleCop." Click the "Reset C# Code Style Options" button and StyleCop will now automatically set all the options it needs to ensure your code cleanup is StyleCop compliant.

May 15, 2011 at 5:52 PM

Thank you! I look forward to trying this new version.

May 16, 2011 at 6:23 AM

In spite of not seeing the "Reset C# Code Style Options" button, by Resharper options now seem to be more StyleCop compliant.

Coordinator
May 16, 2011 at 11:07 AM

You need to open a solution before viewing the options.

May 23, 2011 at 2:52 PM

Is this indtended to look at your Current StyleCop.Settings file and update Resharper to match or simply reset Resharper to the Default.  It seems to have reset all of my Resharper settings to the default as well as refactor some of the tags. 

Coordinator
May 23, 2011 at 4:27 PM

It updates the internal settings of R# (which get saved into the UserSettings.xml file).

May 23, 2011 at 4:30 PM

I gathered that but is it intended to change them back to the defaults?  I'm losing all of my disabled Stylecop Rules when I use this button, everything is turned on.