0

I'm looking for some Visual Studio snippets for implementing style cop rules.

For instance when style cop returns an error saying my code needs a documentation header it would be useful to have a snippet that creates this header for me.

Has anyone got any snippets for implementing resolution to stylecop rules?

AJM
  • 32,054
  • 48
  • 155
  • 243

3 Answers3

3

I use GhostDoc for the header comments that you are referring to in your example. It works flawlessly. GhostDoc

John Kraft
  • 6,811
  • 4
  • 37
  • 53
2

This is the best way to automatically resolve stylecop errors: http://www.codeplex.com/StyleCopForReSharper

You'll need resharper, obviously

Rob Fonseca-Ensor
  • 15,510
  • 44
  • 57
2

Well...

In terms of documentation header try typing /// on the line preceeding a declaration.

Murph
  • 9,985
  • 2
  • 26
  • 41
  • Yes but it doesn't attempt to auto populate the summary and parameter elements in the same way GhostDoc does. – Xander Nov 29 '10 at 11:43