Reputation:
Our coding standard at work requires the following array initialisations to have spaces in them:
int[] arr1 = { 1 };
int[] arr2 = { 2, 3 };
However, Resharper's auto-format is removing the spaces. I've looked in the locations recommended by this question but they are all about multi-line array declarations. Does anyone know if Resharper offers this option?
Upvotes: 3
Views: 1922
Reputation: 67135
This looks like it might have already been answered in this SO answer: How to stop ReSharper removing spaces in object initializer
The key word here is that you are using an initializer.
Upvotes: 2