[英]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.