开发者

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

开发者 https://www.devze.com 2022-12-08 16:46 出处:网络
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 long looks through the settings w

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 long looks through the settings window and I can't seem to figure out how to disable it! Am I missing an obvious check-box somewhere?

Edit:

The unchecking of "Auto close parenthesis after completion" does not do the trick!

I want to be able to type the following without } appearing for me:

if(true){

This doesn't seem like anything to do with intellisense 开发者_开发问答completion.


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.


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


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

精彩评论

暂无评论...
验证码 换一张
取 消