Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Microsoft StyleCop
Microsoft StyleCop

Microsoft StyleCop

Jason Allor

|
9,572 clicks
| (3) | Free
StyleCop analyzes C# source code to enforce a set of best practice style and consistency rules.
Get Started

StyleCop is a source code analysis tool for C# that checks for compliance with a set of best practice rules covering code style, layout, design, and documentation.

The default rules cover the following areas:

Code layout and formatting rules
Code maintainability rules
Readability rules
Naming rules
Element documentation rules
Element ordering rules
File header content rules

StyleCop exposes menu items within the Visual Studio IDE for quick analysis, and may also be integrated into command-line builds based on MSBuild.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft