Code Analysis ReferenceAnalyzersRCS1111On this pageRCS1111: Add braces to switch section with multiple statementsPropertiesPropertyValueDefault Severitydisabled by defaultMinimum language version-ExamplesExample #1diagnostic.csswitch (s){ case "a": Foo(); break;}fix.csswitch (s){ case "a": { Foo(); break; }}Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers