This issue has been created from an NNTP article.
Since there is no <pre> support, assume ">" indicates one level of indentation.
I would like long string statements to be aligned this way:
string s =
>"long part 1\n" +
>"long part 2";
Unfortunately, it would appear that the only relevant setting in ReSharper Options is found under C# | Other | Indentation | Continuous line indent multiplier; setting this value to "1" yields:
string s =
>"long part 1\n" +
>>"long part 2";
Setting this value to "0" yields:
string s =
"long part 1\n" +
"long part 2";
Neither is correct. Am I missing something, or is the formatting I desire not possible?
if (((_gaussianHistory[_gaussianHistory.Length - 1] < 0.0)
>>>>>>>>&& (_gaussianHistory[_gaussianHistory.Length - 2] < 0.0)
>>>>>>>>&& (_gaussianHistory[_gaussianHistory.Length - 3] < 0.0)
>>>>>>>>&& (_gaussianHistory[_gaussianHistory.Length - 4] < 0.0))
>>>>|| ((_gaussianHistory[_gaussianHistory.Length - 1] > 0.0)
>>>>>>>>&& (_gaussianHistory[_gaussianHistory.Length - 2] > 0.0)
>>>>>>>>&& (_gaussianHistory[_gaussianHistory.Length - 3] > 0.0)
>>>>>>>>&& (_gaussianHistory[_gaussianHistory.Length - 4] > 0.0)))
However, if I reformat my document, ReSharper will invariably reformat the above code like so:
if (((_gaussianHistory[_gaussianHistory.Length - 1] < 0.0)
>>>>&& (_gaussianHistory[_gaussianHistory.Length - 2] < 0.0)
>>>>>>>>&& (_gaussianHistory[_gaussianHistory.Length - 3] < 0.0)
>>>>>>>>>>>>&& (_gaussianHistory[_gaussianHistory.Length - 4] < 0.0))
>>>>&& (_gaussianHistory[_gaussianHistory.Length - 2] > 0.0)
>>>>>>>>&& (_gaussianHistory[_gaussianHistory.Length - 3] > 0.0)
>>>>>>>>>>>>&& (_gaussianHistory[_gaussianHistory.Length - 4] > 0.0)))
This is a real annoyance. The only other option is to set the 'Continue indent multiplier' to '0', but that's not acceptable either (and it also screws up other types of multiline statements).
Please, please, please add more flexible support for indentation. Given that indentation is one of the more fundamental (and personal) aspects of code style, I'm really quite surprised at ReSharper's current inflexibility in this area. The rest of ReSharper's code formatting options are quite stellar.