Search code examples
visual-studio-2010stylecop

Adding Author Name in document Header using StyleCop


I am using StyleCop with Visual Studio. Whenever i add a new file it adds few information like company name ,copyright details. I want to add author name and creation date also .Is it possible to update the StyleCop Setting somewhere to support this ?


Solution

  • http://blogs.msdn.com/b/sourceanalysis/archive/2008/05/25/sharing-source-analysis-settings-across-projects.aspx

    http://blogs.msdn.com/b/sourceanalysis/archive/2008/05/25/managing-source-analysis-project-settings.aspx

    Between them you are sorted ;)

    So you create a stylecop settings file for a project (right click on project -> stylecop settings) then copy it into solution root and all the projects will basically inherit their stylecop settings from it.