[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Collapse]CodeRush
  System Requirements
  Improve Performance
 [Expand]Features by Language
 [Expand]Getting Started
 [Expand]How To
 [Expand]Coding Assistance
 [Expand]Navigation and Search Tools
 [Expand]Static Code Analysis
 [Expand]Visualization Tools
 [Collapse]Code Style Assistance
  [Expand]Code Formatters
   Programming Style Rules
   Naming Conventions
  [Expand]Code Cleanup
   Remove Unused Assembly References
  [Collapse]Document Formatting (C#)
    General
    Blank Lines
    Braces
    Spacing
    Wrapping
    Other
   Document Formatting (XAML)
   Organize Members
   Move Member to Region
  Building Assistance
  Debugging Assistance
 [Expand]Refactoring Assistance
 [Expand]Unit Testing Assistance
 [Expand]Decompiling Tools
 [Expand]Configuration Options
 [Expand]Extensibility
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Spacing

The Spacing page contains options which allow you to add or omit whitespace symbols around the following code elements:

  • Arithmetic Expression

  • Relational Expression

  • Bitwise Expression

  • Logical Expression

  • Unary Expression

    • Space before a postfix unary operator
    • Space after a prefix unary operator
  • Ternary Expression

    • Space before a question mark
    • Space after a question mark
    • Space before a colon
    • Space after a colon
  • Assignment Expression

    • Spaces around an operator
  • Expression

    • Space before parentheses
    • Spaces within parentheses
  • Statement

    • Space before parentheses
    • Spaces within parentheses
    • Space before a semicolon
    • Space before semicolons in 'for' loops
    • Space after semicolons in 'for' loops
    • Space before a colon in 'case' expressions
  • Arguments

    • Space before parentheses
    • Spaces within parentheses
    • Space within empty parentheses
    • Space before a separator (comma)
    • Space after a separator (comma)
    • Space before a colon in a named parameter
    • Space after a colon in a named parameter
  • Parameters

    • Space before parentheses
    • Spaces within parentheses
    • Space within empty parentheses
    • Space before a separator (comma)
    • Space after a separator (comma)
  • Initializer

    • Spaces within braces
    • Space before a separator (comma)
    • Space after a separator (comma)
  • Lambda Expression

    • Spaces around an arrow
  • Expression Body

    • Spaces around an arrow
  • Type Parameters

    • Space before angle brackets
    • Spaces within angle brackets
    • Space before a separator (comma)
    • Space after a separator (comma)
    • Space before a colon
    • Space after a colon
  • Type Arguments

    • Space before angle brackets
    • Spaces within angle brackets
    • Space before a separator (comma)
    • Space after a separator (comma)
  • Attributes

    • Space before a colon in target specifier
    • Space after a colon in target specifier
    • Spaces within brackets
  • Null Coalescing Expression

    • Spaces around an operator
  • Base List

    • Space before a colon
    • Space after a colon
    • Space before a comma
    • Space after a comma
  • Constructor Initializer

    • Space before a colon
    • Space after a colon
  • Comment

    • Single line comments should begin with a single space

The image below shows settings applied to an Expression.

Is this topic helpful?​​​​​​​