In the recently released Visual Studio “Orcas” new code metrics are available to analyse your code. The metrics currently calculated are: Maintainability Index, Cyclomatic Complexity, Depth of Inheritance, Class Coupling, and Lines of Code. The metrics will help you determine areas in your codebase which still need work or refactoring.

The Visual Studio Code Analysis Team Blog : Announcing Visual Studio Code Metrics!

The Orcas release of Visual Studio is available for download as a Virtual PC image but beware the download is pretty large. Download Visual Studio Code Name “Orcas”