odd linebreaks around braces when line is too long

When a line is too long I get the following linebreaks in using statements:

using (
    FileStream stream = new FileStream(this.FilePath, FileMode.Create, FileAccess.ReadWrite)

But I would like it to be formatted like this:

using (FileStream stream
           = new FileStream(this.FilePath, FileMode.Create, FileAccess.ReadWrite))

(put the linebreak anywhere inside)

At the same time, I would like to have linebreaks for method arguments like this:


How do I need to setup my settings to make this work? My current user settings are attached.

1 comment
Comment actions Permalink

     I'm afraid there's no setting to control the formatting this way. I've created a ticket in our bug-tracker: http://youtrack.jetbrains.net/issue/RSRP-288141 and you're welcome to monitor its status. Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc


"Develop with pleasure!"


Please sign in to leave a comment.