Visual Studio 2013 VB智能感知 [英] Visual Studio 2013 VB intellisense

查看:135
本文介绍了Visual Studio 2013 VB智能感知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果这是一个愚蠢的问题,我们先道歉,但这无休止地困扰着我,我想不通.

Apologies upfront if this is a silly question, but it's annoying me to no end and I can't figure it out.

我使用的是Visual Studio 2013 Professional,通常使用C#编写代码,在其中使用Intellisense,按Enter键选择一种方法或它添加了我的选择的内容,然后我可以继续在同一行上键入内容.

I'm using Visual Studio 2013 Professional, and I usually code in C# where when using the Intellisense, when I press Enter to select a method or something it adds my selection and I can continue typing on the same line.

但是现在我正在VB.NET中的一个项目上,当我以相同的方式使用Intellisense时,它将光标移到下一行,即按Enter选择任何内容,它会添加我的选择并开始新的一行,因此我必须按Backspace返回上一行.真烦人!

But at the moment I'm working on a project which is in VB.NET, and when I use the Intellisense in the same way it puts my cursor in the next line, i.e. I press Enter to select whatever, it adds my selection and starts a new line, so I have to press the Backspace to go back to the previous line. It's so annoying!

是否可以更改此行为,以使光标不会移至下一行?我查看了工具">选项"中的可用设置,但无法弄清楚,并且在Google上搜索类似内容均未成功.

Is there a way to change this behaviour so the cursor doesn't go to the next line? I've looked at the settings available in Tools > Options but can't figure it out, and searching Google for anything similar hasn't been successful.

推荐答案

找到了它这里(列表成员段)

您已切换到suggestion mode而不是completion mode.

您还可以更改为建议模式,在该模式下,仅将您键入的文本插入到代码中.例如,如果输入的标识符不在列表中,然后按TAB键,则在完成模式下,该条目将替换键入的标识符.要在完成模式和建议模式之间切换,请按CTRL + ALT +空格键或单击编辑/IntelliSense/切换完成模式".

You can also change to suggestion mode, in which only the text you type is inserted into the code. For example, if you enter an identifier that is not in the list and press TAB, in completion mode the entry would replace the typed identifier. To toggle between completion mode and suggestion mode, press CTRL+ALT+SPACEBAR or click Edit/IntelliSense/Toggle Completion Mode.

因此,要么使用TAB/SPACEBAR(如我在评论中所说),要么按CTRL+ALT+SPACEBAR切换回completion mode.

So, either use TAB/SPACEBAR (as I said in the comment) or press CTRL+ALT+SPACEBAR to switch back to completion mode.

我发现,只要键入Stri(字符串将立即在列表中突出显示),然后按.(点),它将自动完成并保持在同一行.

I've found out that whenever you type Stri (String will show highlighted in the list now) and you press . (dot) it will autocomplete and stay at the same line.

我认为您无法在Visual Basic中用C#做到这一点.

I think your way of doing this in C# isn't possible in Visual Basic.

这篇关于Visual Studio 2013 VB智能感知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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