Automatic indentation of arguments list on multiple lines in Visual Studio

前端 未结 2 1963
一个人的身影
一个人的身影 2021-02-20 02:16

When the list of arguments to a method grows to the point where they do not fit comfortably on one line, I like to format code such that each argument is on a separate line (fol

2条回答
  •  春和景丽
    2021-02-20 02:57

    You may want to look at Resharper from JetBrains. It has all sorts of rules that can be applied to formatting code that is much better that the built-in VS stuff.

    http://www.jetbrains.com/resharper/

    This particular option is located at:

    Update

    Resharper > Options > C# >Formatting Style > Line Breaks and Wrapping > Wrap long lines

    I don't know if it does exactly what you want, but it does wrap long lines

提交回复
热议问题