Resharper closing parenthesis indentation on function with multiple arguments

▼魔方 西西 提交于 2019-11-29 12:43:33

问题


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?


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/28637290/resharper-closing-parenthesis-indentation-on-function-with-multiple-arguments

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!