Hanging indentation on ReSharper 8

From some days, I've been using R# 7.1.2000.1478 and just simply love it!

So, today I've decided to get the brand new R# 8, and even when the XAML support is simply great, there is a little thing that bugs me: how the indentation and cropping (now) works.

With 7.1.2, when I clean up my code, R# do something like this:

try
{
    updateLegalEntityState.MessageInProgressBar = "Saving Legal Entity...";
    SE_UPS_LEGALENTITYDETAILSDataResponse response = this.applicationClient.UpsLegalEntityDetails(this.isNew,
                                                                                                  this.regionId,
                                                                                                  this.entityId,
                                                                                                  this.entityName,
                                                                                                  this.entityDisplayName,
                                                                                                  this.dayExchange,
                                                                                                  this.timeExchange,
                                                                                                  this.maxLaborTimeNight,
                                                                                                  this.startNightShift,
                                                                                                  this.maxTimeOvertime,
                                                                                                  this.explosiveStartTime,
                                                                                                  this.serverIp,
                                                                                                  this.outgoingEmail,
                                                                                                  this.releasesFolder,
                                                                                                  this.entityEeod,
                                                                                                  true);
    updateLegalEntityState.ParamResultList.Add(response);
}
catch (Exception ex)
{
    updateLegalEntityState.ParamResultList.Add(ex);
}


But now, with R# 8, it looks like this:

try
{
    updateLegalEntityState.MessageInProgressBar = "Loading Legal Entity...";
    SE_UPS_LEGALENTITYDETAILSDataResponse response = this.applicationClient.UpsLegalEntityDetails(this.isNew,
        this.regionId,
        this.entityId,
        this.entityName,
        this.entityDisplayName,
        this.dayExchange,
        this.timeExchange,
        this.maxLaborTimeNight,
        this.startNightShift,
        this.maxTimeOvertime,
        this.explosiveStartTime,
        this.serverIp,
        this.outgoingEmail,
        this.releasesFolder,
        this.entityEeod,
        true);
    updateLegalEntityState.ParamResultList.Add(response);
}
catch (Exception ex)
{
    updateLegalEntityState.ParamResultList.Add(ex);
}


So, if basically my program settings are just the same (I haven't changed nothing but the R# version), I still don't get it how now all the long lines results just like the example above.

So, any thoughts about it?

Best regards.

1 comment
Comment actions Permalink

ReSharper 8 changed some settings around.
Check Code Editing > C# > Formatting Style > Align Multiline Constructs > Method parameters and it should put the formatting back to the way that you expect it

0

Please sign in to leave a comment.