Code Analysis ReferenceAnalyzersRCS1031On this pageRCS1031: Remove unnecessary braces in switch sectionPropertiesPropertyValueDefault SeverityHiddenMinimum language version-ExamplesExample #1diagnostic.csswitch (x){ case "a": { M(); break; } case "b": break;}fix.csswitch (x){ case "a": M(); break; case "b": break;}Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers