VB.NET IntelliSense:在ENTER自动完成时禁用换行
在Visual Studio 2010中编辑C#代码时,按 ENTER 键可使IntelliSense完成当前建议,而无需添加新行.
When editing C# code in Visual Studio 2010, the ENTER key makes IntelliSense complete the current suggestion, without adding a new line.
在VB.NET中, ENTER 键的默认IntelliSense行为是在完成当前建议后添加新行.
In VB.NET, the default IntelliSense behavior for the ENTER key is to add a new line after completing the current suggestion.
如何配置IntelliSense将VB.NET行为更改为C#?
How can I configure IntelliSense to change the VB.NET behavior to the C# one?
我已经知道我可以按 TAB 或 SPACE ,但是出于习惯,我总是最后按 ENTER (并换行)
I already know that I could press TAB or SPACE, but out of habit I always end up hitting ENTER (and changing line).
不幸的是,用于完成智能感知的触发键集不是VB.Net的可配置项.在默认的Visual Studio环境中,无法更改此行为.
Unfortunately the set of trigger keys for intellisense completion is not a configurable item for VB.Net. There is no way in the default Visual Studio environment to change this behavior.
有可能开发各种插件来完成此任务.但是,这是一个非常极端的措施.
It would be possible to develop a plugin of sorts to accomplish this. However that's a pretty extreme measure.
编辑 从Visual Studio 2017开始,现在可以更改此设置.请参见下面的答案
EDIT As of Visual Studio 2017, it is now possible to change this. See the answer below