Code Analysis ReferenceAnalyzersRCS1126On this pageRCS1126: Add braces to if-elsePropertiesPropertyValueDefault Severitydisabled by defaultMinimum language version-ExamplesExample #1diagnostic.csif (condition) Foo();else Bar();fix.csif (condition){ Foo();}else{ Bar();}Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers