Unstable format of the simple switch-case

Even though I uncheck this option but sometimes the reformat and cleanup still mess up in some cases.

Place simple switch expression on single line 

There are 4 case statements, but when the auto format is messed up, the first one will be always affected

container.RegisterFactory<IPlayerStatus>(c =>
                                      {
                                          var stat= c.Resolve<IStat>();
                                          var playerType = stat.Type;
                                          switch (playerType)
                                          {
                                              case PlayerType.BadReputation: return new Punishment();
                                              case PlayerType.Peaceful:
                                                    return new Attitude();
                                               case PlayerType.Savior:
                                                    return new Respect();
                                              default:
                                                  return new Olof();
                                          }
                                      });

0
1 comment

Supnep could you clarify if this happens occasionally when you reformat the any piece of code multiple times or does it happen each time when you reformat specific code snippets?

Could you also attach a screenshot demonstrating what exactly the incorrect formatting looks like in the editor?

0

Please sign in to leave a comment.