StyleCop for Reshar - where he left

Im a great fan of resharper and used a stylish style for the resharper plugin a while ago. I wanted to use it again today, but the style for the resharper codeplex site says that the style for resharper is now integrated in stylecop.

So, I installed stylecop (4.6), but my resharper (5.1) has not changed. I especially liked the use of the code formatting options that were included in the style for the resharper package (I think the file was "StyleCopCodeStyle.xml", which could be used in the resharper parameters to set the code formatting and cleaning behavior) - this XML file now disappeared .

I'm missing something. Theres zero doumentation about this resharper style / marriage, and I don't know what I actually get

Can anyone shed some light on this?

+4
source share
2 answers

The StyleCop project home page clearly states that StyleCop 4.5 is a version compatible with Resharper 5.1.

+4
source

Just an update for ReSharper 9:

To install ReSharper and StyleCop together, follow these steps:

  • Close all Visual Studio applications (important!).
  • Install ReSharper by double-clicking the executable and following the installation process. This step will require administrative rights (most likely). The exact steps to be followed are unknown, as they may be different in the trial version and the full version.
  • Download the msi stylish car file here: https://stylecop.codeplex.com/releases/view/79972
  • Install it by double-clicking and following the standard installation process. NOTE. You may need to move the installation files to a different directory from C: because otherwise, if the user does not have administrative rights, they will not be able to break the rules.
  • Open Visual Studio, and a new menu item should appear in the top menu bar called ReSharper. Select Extension Manager ... enter image description here
  • A new window should open with a list of all possible extensions for resharper. Search (top right) for "ReSharper.StyleCop" and click the install button.
  • Follow the basic installation instructions for this add-on.
  • Restart visual studio.
  • Done!
+5
source

Source: https://habr.com/ru/post/1385081/


All Articles