How to disable automatic line break on base constructor call

前端 未结 1 642

My classes are formatted like this automatically in Visual Studio.

[Serializable]
public class TestException : Exception {
    public TestException()
        : b         


        
1条回答
  •  走了就别回头了
    2021-02-19 21:37

    Unfortunately there is no such setting in the Visual Studio's built-in Options\Text Editor\C#\Formatting\New Lines dialog.

    If you use ReSharper there is a Place constructor initializer on same line option under Code Editing\C#\Formatting Style\Line Breaks and Wrapping:

    ReSharper

    0 讨论(0)
提交回复
热议问题