Search code examples
c#resharperstylecop

How do I set the ReSharper default Company and Copyright?


I just installed Stylecop 4.5RC along with ReSharper. When I create a new class, I see that I am now compliant (yay!), but I want the company to be my company, not Microsoft. I also have too much to do to have to worry about updating the copyright text. How do I fill these in by default?

// -----------------------------------------------------------------------
// <copyright file="ReaderResultTypes.cs" company="Microsoft">
// TODO: Update copyright text.
// </copyright>
// ---------------------------------------------------------------------

--


Solution

  • Thats looks like the header from StyleCop. (Last version of StyleCop include the StyleCop plugin for resharper)

    Ok how to change? Right click on your project in the solution explorer. Select the context menu item "StyleCop settings". On the settings dialog switch to the tab "Company Information" and check the checkbox. Enter your copyright informations in the fields. Done :-)