Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Code Style Enforcer
Code Style Enforcer

Code Style Enforcer

Joel_F

|
5,356 clicks
| (4) | Free
Code Style Enforcer gives instant visual feedback inside the C# code editor when someone violates any of the configurable code rules.
Get Started

Code Style Enforcer 3.5 and above is utilizing the new editor extension capabilities introduced in Visual Studio 2010. Code Style Enforcer checks the code against a configurable code standard and best practices. It is developed for C#, but some of the rules will also be applicable VB.NET.

Code Style Enforcer can also generate code rule violation reports for a complete project or solution.

The code standard is currently configurable with the following rules:

• Name rules, where it is possible to have different rules for different members, i.e. fields, constants, variables, methods, properties and so on. It is also possible to add overrides to code types, i.e. specifying different name rules for code types with specific modifiers (keywords) or visibility.

• Visibility rules, where you can specify the visibility that is valid for different members. It is also possible to specify that the visibility has to be specified explicitly. It is also possible to add overrides to code types, i.e. specifying different visibility rules for code types with specific modifiers (keywords).

• Implementation rules, where it is possible to specify that interface implementations are to be made explicitly or implicitly.

The default rules are based on the C# Coding Standard from IDesign, which is is the most complete code standard available and it is free to download.

Code Style Enforcer is dependent upon the latest version of DXCore, from Developer Express, for source code parsing.

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