JetBrains Rider 2024.3 Help

Code inspection: Join or separate attributes in section

Multiple attributes in C# can be written in different ways: you can join several attributes in the same square brackets section or use several sections for different attributes. ReSharper allows you to specify the style for multiple attributes and enforce this style in the desired scope.

By default, multiple attributes are checked for compliance with your preferences and if they do not comply, JetBrains Rider highlights such declarations and suggests the corresponding quick-fix or fix in scope.

For more information about configuring and enforcing your preferences for multiple attributes, refer to Code Syntax Style: Multiple Attributes.

Last modified: 11 February 2024