VB.NET IntelliSense:在ENTER自动完成时禁用换行 [英] VB.NET IntelliSense : Disable newline on ENTER autocomplete

查看:132
本文介绍了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

这篇关于VB.NET IntelliSense:在ENTER自动完成时禁用换行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆