Use StringBuilder.AppendLine
ProprietaryReplace sb.Append("\n") with sb.AppendLine().
OpenRewrite. Recipes. CSharp. CodeQuality. Performance. UseStringBuilderAppendLinemod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Performance. UseStringBuilderAppendLineInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.