Long line wrapping?

Hello,

I am experiencing an issue with line wrapping in ReSharper 2.0.239 (I guess it was in previous builds too). It might be because I don't really understand how the options work.

Let's say I want to wrap invocation arguments, but not formal parameters, how would you do that? I can't "disable" wrapping for a specific case. (I don't want to do "simple wrap"). When I uncheck the "Wrap long lines" checkbox, no more wrapping is done, at all.

Anyone can help me with this one? I would appreciate it. :)

Thank you,
Alexandre

4 comments
Comment actions Permalink

Unfortunately, you can't set separate right margins for different
constructs. The right margin is the same for the whole document.

But you can set the right margin to the very large number (say, 10 000) and
set the "Invocation Argument" to "Chop always"
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Alexandre Loiseau" <no_reply@jetbrains.com> wrote in message
news:29933251.1146753730152.JavaMail.itn@is.intellij.net...

Hello,

>

I am experiencing an issue with line wrapping in ReSharper 2.0.239 (I
guess it was in previous builds too). It might be because I don't really
understand how the options work.

>

Let's say I want to wrap invocation arguments, but not formal parameters,
how would you do that? I can't "disable" wrapping for a specific case. (I
don't want to do "simple wrap"). When I uncheck the "Wrap long lines"
checkbox, no more wrapping is done, at all.

>

Anyone can help me with this one? I would appreciate it. :)

>

Thank you,
Alexandre



0
Comment actions Permalink

Okay, thank you.

Is it possible to add a "Never wrap" option in the combo editor for each construct for ReSharper 2.1.x? I think that would be a nice feature not too hard to implement.

Alexandre

0
Comment actions Permalink

I think no.

The reason is that the C# constructs are nested. For example, imagine the
folowing invocation expression:

foo(ab, cd);

If you forbid ReSharper to wrap arguments, but still allow it to wrap binary
expressions, you could get the following:

foo (a +
b, c +
d);

The isn't what anyone would like, I think :)

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Alexandre Loiseau" <no_reply@jetbrains.com> wrote in message
news:22864662.1146764019337.JavaMail.itn@is.intellij.net...

Okay, thank you.

>

Is it possible to add a "Never wrap" option in the combo editor for each
construct for ReSharper 2.1.x? I think that would be a nice feature not
too hard to implement.

>

Alexandre



0
Comment actions Permalink

Okay, I understand what you mean now.

Thanks,
Alexandre

0

Please sign in to leave a comment.