Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resharper closing parenthesis indentation on function with multiple arguments

Tags:

c#

resharper

I have some lines of code in c# that Resharper indents like this:

Console.WriteLine("Hello");
this.MySuperFunction(
  argument1,
  argument2,
  argument3
  );
Console.WriteLine("World");

Due to my personal coding style, I would like the above to appear with the closing parenthesis (or brace) without any indentation, like so:

Console.WriteLine("Hello");
this.MySuperFunction(
  argument1,
  argument2,
  argument3
);
Console.WriteLine("World");

I tried playing with the various options on Resharper, but couldn't find any. Is there a way I can make this work?

like image 456
Theodore Zographos Avatar asked Feb 20 '15 20:02

Theodore Zographos


2 Answers

It seems this is not currently possible with ReSharper. There is however an open issue that appears to be slated for release with version 9. If you're interested in raising awareness to the issue and hope to ensure it gets included in the release I recommend you create an account and up vote the issue.

like image 100
LeastOne Avatar answered Nov 12 '22 04:11

LeastOne


Update to 2016.2 version. An option Intent method calls' parenthesis appeared in this version:

screenshot

like image 37
lorond Avatar answered Nov 12 '22 02:11

lorond