Code Analysis ReferenceAnalyzersRCS1004On this pageRCS1004: Remove braces from if-elsePropertiesPropertyValueDefault Severitydisabled by defaultMinimum language version-ExamplesExample #1diagnostic.csif (condition){ WhenTrue();}else{ WhenFalse();}fix.csif (condition) WhenTrue();else WhenFalse();Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers