我主要是一名 C# 开发人员;然而,我目前正在为一位喜欢 VB.net 的客户开发一个项目。我已经成功地很好地完成了转换,但有一个令人沮丧的例外。在 Visual Studio 中编辑 C# 文件时,按 Enter 键将从 IntelliSense 窗口中选择一个项目,并将光标保留在所选语句的末尾。
但是,在编辑 VB 文件时,按 Enter 键会从 IntelliSense 弹出窗口中选择该项目,并将光标移动到下一行。我意识到这是一件小事,但它让我发疯,因为它使得在 C# 和 VB 项目之间切换非常困难。
我已经在谷歌上搜索了我能想到的所有内容,但一无所获。有谁知道改变 IntelliSense 选择行为的方法?提前致谢。
I am primarily a C# developer; however, I am currently working on a project for a client who preferred 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.
However, when editing a VB file, pressing enter selects the item out the IntelliSense popup AND moves the cursor to the next line. 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.
I have searched for everything I can think of in Google and found nothing. Does anyone know of a way to change the IntelliSense selection behavior? Thanks in advance.
发布评论
评论(2)
目前无法使用 VB.NET 来完成,根据 Microsoft 的此帖子。
一位读者建议使用名为 SharpDevelop 的开源 IDE 在 VB.NET 代码上获取 C# 行为。
It just can't be done with VB.NET for now, according to this thread from Microsoft.
One reader there suggested and open source IDE called SharpDevelop to get C# behaviors on VB.NET code.
请使用 CTRL+空格键来使用弹出窗口的智能感知。这将在 VB 和 C# 之间影响您的 Intellisense。
Please use the CTRL+SPACEBAR to use Intellisense of popup. This will effect of your Intellisense in between VB and C#.