Code Analysis ReferenceAnalyzersRCS0048On this pageRCS0048: Put initializer on a single linePropertiesPropertyValueDefault Severitydisabled by defaultMinimum language version-ExamplesExample #1diagnostic.csvar dic = new Dictionary<int, string>(){ { 0, "0" }};fix.csvar dic = new Dictionary<int, string>() { { 0, "0" } };Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Formatting.Analyzers