'R# identation based on previous automatically aligned line

I am trying to configure R# with VS 2019 for the first time and I'm wondering if a specific indentation is possible to do.

What I currently have :

indent I currently have

I would like to move the 3rd line (and if possible the closing parenthese at 4th line) to be indented to the beginning of the previous line which is aligned, like this :

enter image description here

Here are my Parenthesis options (Extension / Resharper / Options / Code Editing / C# / Formatting Style / Tabs, Indent, Alignment) :

enter image description here

And here are my Align multiline constructs options (Extension / Resharper / Options / Code Editing / C# / Formatting Style / Tabs, Indent, Alignment)

enter image description here

Is what I want to do even possible with the current indentation options available?



Solution 1:[1]

Yes and no ? you can align arguments to the enclosing parenthesis, e. g.:

worksheet.Cells[positionExcelLine, 4]
         .Value = Convert.ToDecimal(
                                    total["MONTANT"].Replace(" ", "");

For this, go to ReSharper | Options | Code Editing | C# | Formatting Style | Tabs, Indents, Alignment and enable Call arguments by '('`: enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 mu88