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

后端 未结 2 1241
名媛妹妹
名媛妹妹 2021-02-11 12:20

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 13:08

    Solution for long lines:

    ReSharper, menu OptionsCode EditingC#Formatting StyleLine Breaks And Wrapping.

    And disable Wrap long lines:

    Enter image description here

    And it really makes me crazy!

    0 讨论(0)
  • 2021-02-11 13:10

    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.

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