How to prevent auto-closing of curly braces in ReSharper?

前端 未结 3 703
无人共我
无人共我 2021-01-17 07:57

A simple question.

I\'m trying out ReSharper and it closes my curly braces for me as soon as I open them. I really dislike this \"feature\" and I\'ve had about three

相关标签:
3条回答
  • 2021-01-17 08:19

    Go to ReSharper Options->Environment->Editor->Edit Behavior and disable "Auto-insert closing brace". Additionally, if this is a new Visual Studio install, newer versions also do this by default. You'll have to go to Options->Text Editor->C#->General and disable "Automatic brace completion."

    0 讨论(0)
  • 2021-01-17 08:27

    To turn off this behaviour, open the ReSharper options and on the Editor tab, untick the Auto-insert closing brace option. There should be no need to restart Visual Studio.

    0 讨论(0)
  • 2021-01-17 08:38

    FYI: I thought there was a bug in ReSharper until I realised Microsoft's "Productivity Power Tools" plugin also has an automatic brace completion option which is set to on by default.

    To turn it off: Tools > Productivity Power Tools > Automatic Brace Completion > Off

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