且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Visual Studio 2015中按空格键时停止默认的自动完成行为

更新时间:2022-12-28 15:47:43

编辑-> Intellisense->切换完成模式

Edit -> Intellisense -> Toggle Completion Mode

来自: https://msdn.microsoft.com/en-us/library/hcw1s69b.aspx

您还可以更改为建议模式,在该模式下,仅将您键入的文本插入到代码中.例如,如果您输入的标识符不在列表中并按TAB,则在完成模式下该条目将被替换要在完成模式和建议模式之间切换,请按CTRL + ALT +空格键或单击编辑/IntelliSense/切换完成模式"."

"You can also change to suggestion mode, in which only the text you type is inserted into the code. For example, if you enter an identifier that is not in the list and press TAB, in completion mode the entry would replace the typed identifier. To toggle between completion mode and suggestion mode, press CTRL+ALT+SPACEBAR or click Edit/IntelliSense/Toggle Completion Mode."