简体   繁体   English

Visual Studio / VB.Net 2008 IntelliSense奇怪的行为

[英]Visual Studio / VB.Net 2008 IntelliSense Odd Behavior

I am primarily a C# developer; 我主要是C#开发人员; however, I am currently working on a project for a client who preferred VB.net. 但是,我目前正在为喜欢VB.net的客户开发项目。 I have managed to switch over fairly well, with one frustrating exception. 除了一个令人沮丧的例外,我已经设法很好地进行了切换。 When editing a C# file in Visual Studio pressing enter will select an item out of the IntelliSense window and keep the cursor at the end of the selected statement. 在Visual Studio中编辑C#文件时,按Enter键将在IntelliSense窗口中选择一个项目,并将光标保持在所选语句的末尾。

However, when editing a VB file, pressing enter selects the item out the IntelliSense popup AND moves the cursor to the next line. 但是,在编辑VB文件时,按Enter键可从IntelliSense弹出菜单中选择项目,并将光标移至下一行。 I realize that this is a small thing, but it drives me crazy, because it makes it really hard to switch between C# and VB projects. 我意识到这是一件小事,但是它使我发疯,因为这真的很难在C#和VB项目之间切换。

I have searched for everything I can think of in Google and found nothing. 我已经搜索了所有可以在Google中想到的内容,但一无所获。 Does anyone know of a way to change the IntelliSense selection behavior? 有人知道改变IntelliSense选择行为的方法吗? Thanks in advance. 提前致谢。

It just can't be done with VB.NET for now, according to this thread from Microsoft . 根据Microsoft的这一线索 ,目前暂时无法使用VB.NET来完成。

One reader there suggested and open source IDE called SharpDevelop to get C# behaviors on VB.NET code. 那里的一位读者建议并使用名为SharpDevelop的开源IDE来获取VB.NET代码上的C#行为。

Please use the CTRL+SPACEBAR to use Intellisense of popup. 请使用CTRL +空格键使用弹出窗口的Intellisense。 This will effect of your Intellisense in between VB and C#. 这将在VB和C#之间影响您的Intellisense。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Visual Studio 2008中使VB.NET和C#的语法突出显示和键盘行为相同? - How to make make syntax highlighting and keyboard behavior identical for VB.NET and C# in Visual Studio 2008? intellisense-VB.NET visual Studio 2013中的自动生成的属性 - intellisense - autogenerated properties in VB.NET visual Studio 2013 Visual Studio 2005中的VB.NET项目缺少Intellisense - Intellisense missing for VB.NET projects in Visual Studio 2005 多行 XML VB.NET 和 Visual Studio Intellisense 中的注释 - Multiline XML Comments in VB.NET and Visual Studio Intellisense 使用 Visual Studio Code for vb.net:如何启用 vb.net intellisense? - Using Visual Studio Code for vb.net : How to enable vb.net intellisense? Visual Studio 2008 —使用VB.Net在表中插入数据 - Visual Studio 2008 — inserting data in table using VB.Net Visual Studio 2008智能设备VB.net中的Sqlite - Sqlite in Visual Studio 2008 Smart Device VB.net 在VB.NET/Visual Studio 2008中使用GetUserName进行访问冲突 - Access Violation using GetUserName in VB.NET / Visual Studio 2008 如何在Visual Studio 2008 VB.NET上修复Imports语句 - How to fix the Imports Statement on Visual Studio 2008 for VB.NET 使用变量引用vb.net中的对象(Visual Studio 2008) - Using variables for referencing objects in vb.net (Visual Studio 2008)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM