c# - How to stop ReSharper removing spaces in object initializer -


I like my object initial to look like this:

  new dot {label = G. Ki, name, claim = g};  

When the semicolon key is pressed, they are reformatted like this:

  new point {label = g. Kenam, claim = g}; 

P> For R # 7, I 1

I can get a difference by going to the racers. Options | Code editing | C # | Formatting style | Vacancy

and toggle

Other |

For example

  int [] x = new int [] {0, 1, 2} within single row initializer braces;  

vs

  int [] x = new int [] {0, 1, 2};  

Although the array is an example of startup, it also appears to control object initialization.


1 # 5, "Code editing" was "languages".


Comments