For the complete documentation index, see llms.txt. This page is also available as Markdown.

Formatting and Style Standards

Purpose

Formatting must not be a matter of personal preference inside a project. It should be automated, consistent and enforced before code review.

AIC Standard

  • Use .editorconfig at repository root.

  • Use file-scoped namespaces for new code unless project style differs.

  • Use four spaces for indentation.

  • Use braces for all multi-line control blocks.

  • Prefer explicit access modifiers.

  • Prefer one public type per file.

  • Keep files focused and cohesive.

  • Remove unused usings.

  • Sort usings consistently.

  • Use expression-bodied members only when they improve clarity.

Example Style

Line Length

AIC does not enforce a rigid line length where it harms readability, but code should generally remain readable on standard review screens.

Use line breaks for:

  • long parameter lists

  • fluent chains

  • LINQ queries

  • object initializers

  • attribute lists

Formatting Gate

Before merge:

Where ReSharper cleanup is part of the project gate, run the agreed cleanup profile before PR submission.

Was this helpful?