How do I stop Visual Studio from inserting “object” when I type “new {”

前端 未结 5 1854
轻奢々
轻奢々 2020-12-15 23:53

When editing a C# source file, I type

new {

Visual Studio auto-corrects it to

new object{

Is there a way

5条回答
  •  無奈伤痛
    2020-12-16 00:03

    I ran into this issue, and the answers above didn't work for me. In my case, it was caused by Resharper, and I addressed it by navigating to Resharper -> Options -> Environment -> Intellisense -> Completing Characters and adding the opening curly brace character "{" to the "Do not complete on" list for C#.

提交回复
热议问题