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

前端 未结 5 1877
轻奢々
轻奢々 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:12

    You can configure which characters being typed commit the current intellisense selection. In Tools | Options | Text Editor | C# | IntelliSense.

    Remove "{" and ensure committed by the space bar is not checked.

    NB. This option is no longer present as of Visual Studio 2015.

提交回复
热议问题