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

前端 未结 5 1865
轻奢々
轻奢々 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条回答
  •  萌比男神i
    2020-12-15 23:58

    Try typing the left brace first, then going back and typing new. VS2008 does this for me (without ReSharper) and, if I remember, this is what I do. It's less typing than deleting the inserted "object".

提交回复
热议问题