开发者

ReSharper Reformat, array initialization, space after comma

R开发者_运维技巧eSharper reformats code

int[] array = new int[width, height];

to

int[] array = new int[width,height];

But I want a space after comma! Can't find this setting in options...


If you go to Resharper options->Languagues->C#->Formatting Style->Spaces, there is an option under "Other" called "After comma"

If you activate that, Resharper will add the space you are looking for. Beware that it also changes that in method calls and probably in other places too.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜