Break lines and wrapping in auto formatting of Visual Studio with ReSharper

后端 未结 2 1673
没有蜡笔的小新
没有蜡笔的小新 2021-02-11 12:28

I\'m working in a C# project and using Visual Studio 2012. When Visual Studio tries to format my code, it breaks lines and make my code look difficult to read. The ori

2条回答
  •  攒了一身酷
    2021-02-11 12:54

    In ReSharper's settings, in the Languages section, you can change the formatting style of your C# code. The option you're looking to disable is something along the lines of "Indent anonymous method body." You can also look through the options to further customize the formatting style to your preference.

提交回复
热议问题