Theodore Zographos
Theodore Zographos

Reputation: 2395

Resharper closing parenthesis indentation on function with multiple arguments

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?

Upvotes: 11

Views: 560

Answers (2)

lorond
lorond

Reputation: 3896

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

screenshot

Upvotes: 3

LeastOne
LeastOne

Reputation: 388

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.

Upvotes: 5

Related Questions