VB.NET IntelliSense:在 ENTER 自动完成时禁用换行符 [英] VB.NET IntelliSense : Disable newline on ENTER autocomplete
问题描述
在 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 键的默认智能感知行为是在完成当前建议后添加新行.
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
这篇关于VB.NET IntelliSense:在 ENTER 自动完成时禁用换行符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!