New "Wrap" Option

I would like to have a new option for wrapping code:
"Wrap before ': base/this' constructors"

Basically
public MyClass() : base ( "some value" )
should be:
public MyClass()
: base ( "some value" )

Thanks,
Corneliu.


2 comments
Comment actions Permalink

Hello Corneliu,

please post a request to the tracker for your option.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I would like to have a new option for wrapping code: "Wrap before ':
base/this' constructors"

Basically
public MyClass() : base ( "some value" )
should be:
public MyClass()
: base ( "some value" )
Thanks,
Corneliu.



0
Comment actions Permalink

Hi,

Isn't the this option you're looking for:

Resharper > Options > Code Style > Line Breaks and Wrapping > Other >
place constructor initializer on the same line (yes/no)?

Wiebe

Corneliu I. Tusnea wrote:

I would like to have a new option for wrapping code:
"Wrap before ': base/this' constructors"

Basically
public MyClass() : base ( "some value" )
should be:
public MyClass()
: base ( "some value" )

Thanks,
Corneliu.

0

Please sign in to leave a comment.