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>
// ---------------------------------------------------------------------
--
In Visual Studio 2012 and later, you can use the Quick Launch feature to search and execute ReSharper commands. While in the editor, press Alt+Enter and then start typing the name of a ReSharper command that you want to execute (more...).
In the Visual Studio menu, choose ReSharper | Options. In the Options dialog that appears, select a node in the left pane and configure settings in the right pane. Use the search box in the left top corner to find a specific preference.
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 :-)
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