Multi-line expression indenting issue

When I type the following two code "lines", ReSharper auto formats them to a jumbled mess of spaces and tabs (whitespace is represented in , since I can't actually type whitespace in the forum and the indent my project uses is the tab character).

I type:

int a = 1 +
2 + 3 + 4 + 5; int a = true ? 5 : ]]>6;

-



I get (with Align Multiline Constructs/Expression & Continuous line indent multipler = 1 ):

int a = 1 +
2 + <8 spaces>3 + <8 spaces>4 + 5; int a = true ? <13 spaces>5 : <13 spaces><2 spaces>]]>6;

-



I get (without Align Multiline Constructs/Expression & Continuous line indent multipler = 1):

int a = 1 +
2 + 3 + 4 + 5; int a = true ? <13 spaces>5 : <13 spaces><2 spaces>]]>6;

-



I want:

int a = 1 +
2 + 3 + 4 + 5; int a = true ? 5 : ]]>6;

-



This is NEVER the formatting I want, I just want the following lines to be indented exactly one tab character more than the first line, and I've toggled every single option in the options menu, to no avail. I just want it to leave these lines alone and preserve the indent I give it, since it can't ever seem to get it right. I'd even be happy if I could just turn off all auto formatting commands altogether at this point, since I'm sick of following ReSharper around and fixing it's "fixes". When the operands are more than a single character, it adds even more whitespace, starting the line way past where I want my lines to wrap. Please help me.

Edited by: chadnedz on Oct 21, 2008 3:29 AM

Please sign in to leave a comment.