使用Tab键提交intellisense选择 [英] Using Tab key to commit intellisense selections

查看:66
本文介绍了使用Tab键提交intellisense选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

新人试图在这里学习c#。


Visual Studio有很多设置,但我担心它没有我需要的设置。


我发现非生产性的Visual Studio的一个行为是,几乎任何键的按下都会选择智能感知建议。例如,如果我输入"i",要用作变量,我稍后会发现intellisense插入
" int"。


我知道它试图提供帮助,但事实并非如此。我喜欢有intellisense,但如果只按下Tab键(或其他特殊键),只会提交建议会很有用。


使用Python,我可以转到options =>文字编辑器=>蟒=>预先=> "通过键入以下字符来承诺:"并删除该字段中的所有内容。对于C#,我没有看到这样的内容。


有没有办法用C#实现这个目标?


如果没有,我必须是唯一的人它很烦人。专业人士如何处理这个问题?每当intellisense提出建议并且你不想使用这个建议时,你是否按下了ESC键?谢谢。

解决方案

嗨jimclay75051,


欢迎来到MSDN论坛。


根据您的要求,似乎我们可以看一下:

IntelliSense建议模式


默认我们使用Intellisense完成模式,所以输入'i'并按任意键,我们g等'int'。我们可以转到Edit-Intellisense-Toggle
完成模式或Ctrl + Alt + Space设置为建议模式:



之后,输入"i",它将显示为建议模式,然后按任意键将不会自动完成'int':





< p style ="margin-bottom:10.5pt; vertical-align:baseline"> 最佳 问候,


萨拉


New person trying to learn c# here.

Visual Studio has so many settings, but I'm worried it doesn't have the one I need.

One of the behaviors of Visual Studio that I'm finding unproductive is that an intellisense suggestion is selected with the pressing of almost any key. For example, if i type in "i" to use as a variable, I'll discover later that intellisense inserted "int".

I know it's trying to be helpful, but it's not. I like having intellisense, but it would be useful if the suggestions would only be committed if I pressed the tab key (or some other special key).

With Python, I can go to options=> Text Editor=> Python=> Advance=> "Committed by typing the following characters:" and delete everything in that field. I see nothing like this for C#.

Is there some way of accomplishing this with C#?

And if not, I must be the only person it bothers. How do the professionals deal with this? Do you hit the ESC key every time intellisense suggests something and you do not wish to use the suggestion? Thanks.

解决方案

Hi jimclay75051,

Welcome to the MSDN forum.

For your requirement, it seems we can have a look at this: IntelliSense Suggestion Mode

Default we are used the Intellisense Completion mode, so type ‘i’ and press any keys, we get the ‘int’. We can go to Edit-Intellisense-Toggle Completion Mode or Ctrl+Alt+Space to set as Suggestion mode:

After that, type ‘i’ and it will display as the suggestion mode, then press any key will not auto complete with ‘int’:

Best regards,

Sara


这篇关于使用Tab键提交intellisense选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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