Wrong line break

Answered

Hello!

When i work with Unity Rider, for some reason, wraps the line when refactoring a line. Please tell me which parameter is responsible for this. I was already worn out looking for him.

 

How I want him to stay:

Transform spawned = Instantiate(new GameObject()).transform;

What he do:

Transform spawned = Instantiate(new GameObject())
.transform;
2 comments
Comment actions Permalink

    Hi Bogdan.

    Please open the settings page “File | Settings | Editor | Code Style | C#”, on the tab  “Line Breaks and Wrapping” find the “Arrangement of Member Access Expressions” drop-down list  and  “Wrap chained method calls” in it. Then  change its value to “Simple wrap”.

    After saving this setting, please try to reproduce the issue and let me know if it helps. 
    Here is a short video of how it works.
http://g.recordit.co/90BHkSP6NU.gif 

    Best regards,
    Maxim Isaev.

1
Comment actions Permalink

Thanks!

 

0

Please sign in to leave a comment.