Closed Hona closed 1 month ago
@belav
Currently we get a line break and the comma inserted, I think it would be simpler to add the comma before the comment.
Thoughts?
Input:
var option = Options.A; var value = option switch { Options.A => "A", Options.B => "B", Options.C => "C" // comment line }; public enum Options { A, B, C, }
Output:
var option = Options.A; var value = option switch { Options.A => "A", Options.B => "B", Options.C => "C" // comment line , }; public enum Options { A, B, C, }
Expected behavior:
var option = Options.A; var value = option switch { Options.A => "A", Options.B => "B", Options.C => "C", // comment line }; public enum Options { A, B, C, }
Ah, duplicate of https://github.com/belav/csharpier/issues/1354 . Sorry.
@belav
Currently we get a line break and the comma inserted, I think it would be simpler to add the comma before the comment.
Thoughts?
Input:
Output:
Expected behavior: