Prevent Resharper from producing trailing whitespaces after method wrap

Hi,

is it possible to prevent Resharper from producing whitespaces at the end of line while wrapping methods  when using code cleanup?

For example, Resharper formats this definition

ThisIsAVeryLongMethodWithoutAnySense(int parameter1, int parameter2, int parameter3, int parameter4, int parameter5, int parameter6, int parameter7, int parameter8, int parameter9)

to this

ThisIsAVeryLongMethodWithoutAnySense(
            int parameter1, int parameter2, int parameter3, int parameter4, int parameter5, int parameter6, int parameter7,_
            int parameter8, int parameter9)

which violates StyleCop+ rule SP2000 (CodeLineMustNotEndWithWhitespace).

Thanks

1 comment
Comment actions Permalink

Hello Christopher
     There's no option to control this behavior in ReSharper at the moment. You can try installing the StyleCop plug-in for ReSharper and check if it offers a fix for this problem. Thank you!

Andrey Serebryansky

Software Developer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0

Please sign in to leave a comment.