我如何停止的Visual Studio从插入"对象"当我输入"新{" [英] How do I stop Visual Studio from inserting "object" when I type "new {"
本文介绍了我如何停止的Visual Studio从插入"对象"当我输入"新{"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当编辑C#源文件,我键入
When editing a C# source file, I type
new {
Visual Studio中它的自动校正成
Visual Studio auto-corrects it to
new object{
有没有办法制止这种行为?
Is there a way to stop this behavior?
推荐答案
您可以配置哪些角色正在键入提交当前智能感知的选择。在工具|选项|文本编辑器| C#|智能感知。
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。此选项不再存在作为的Visual Studio 2015年的。
NB. This option is no longer present as of Visual Studio 2015.
这篇关于我如何停止的Visual Studio从插入"对象"当我输入"新{"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文