VB.NET IntelliSense : Disable newline on ENTER autocomplete

后端 未结 2 1063
渐次进展
渐次进展 2020-12-02 18:17

When editing C# code in Visual Studio 2010, the ENTER key makes IntelliSense complete the current suggestion, without adding a new line.

In VB.NET, the de

相关标签:
2条回答
  • 2020-12-02 18:31

    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.

    EDIT As of Visual Studio 2017, it is now possible to change this. See the answer below

    0 讨论(0)
  • 2020-12-02 18:39

    UPDATE VISUAL STUDIO 2017:

    Now with Visual Studio 2017 you can change it. Tools -> Options -> Text Editor -> Basic -> IntelliSense. In Enter key behavior select Never add new line on enter

    ANSWER FOR VISUAL STUDIO 2015 AND PREVIOUS:

    Resharper makes it possible overriding Visual Studio intellisense and using its own intellisense. It is the only way I've found. It has a 30 days free trial if you want to test it.

    0 讨论(0)
提交回复
热议问题