简体   繁体   中英

How can I make ReSharper not add all my .Bind statements to the one line?

I've looked through the options and I am still unable to find out why it's doing this. Here is the before:

var textLabel  = new TextLabel()
    .Bind(Label.TextProperty, nameof(Text1), source: this);

and here is the after:

var textLabel  = new TextLabel().Bind(Label.TextProperty, nameof(Text1), source: this);

I would like it not to add them all to the same line but cannot find out how to disable this change.

Does anyone with some good knowledge of ReSharper no how I can stop this?

I found the answer to this. I need to change the following:

C# > Formatting Style > 
    Line Breaks and wrapping > 
    Arrangement of Method signatures > 
    Wrap formal parameters > 
    Chop always

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM