Space after comma with line break

I'd like to ask how to remove space after comma, when there is line break

so e.g in Enum

public enum Test


   First = 1,

   Second = 2,


After comma there is a white space on code cleanup. I would like to remove this kind of comma (everywhere there is a line break)

Comment actions Permalink

Hello Marcin,

Could you please describe which space are you talking about? Is it a space after 1st comma, before the newline before 2nd element?

Comment actions Permalink

I mean there is always a space after comma on end of line. If there is multiple parameters chopped, collection initialization, etc. If line ends with comma, there is always single space after that comma. And I would like to avoid any spaces on the end of line. In any place.

Comment actions Permalink

Hi Marcin, Alex,


I'm also facing the same issue.

Were you able to resolve it yet?





Please sign in to leave a comment.