Facebook

StyleCop

Visual Sudio Stylecop Screenshot

StyleCop is an extremely useful Visual Studio plugin that helps you validate your style against a set of predefined rules. It runs straight from the editor and shows errors and warnings in your error list.

The big benefits of using this tool become clear in projects with larger team sizes. All developers will code in the same style, and in the long run it helps your code base staying clean. Our advice: Don’t accept any warnings from StyleCop, like you should in your code.

In this video we demonstrate the basic functionality of StyleCop, and how to use it. We also recommend to run it as part of your gated check-in to make sure your code stays clean and properly documented, even when the deadline comes close!

You can download the plugin here. Make sure that if you use it you also have a look at GhostDoc