3

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?

Community
  • 1
  • 1

1 Answers1

2

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.

Community
  • 1
  • 1
Justin Pihony
  • 66,056
  • 18
  • 147
  • 180