如何获得在Visual Studio参数提示/完成? [英] How to get parameter hints/completion in Visual Studio?

查看:560
本文介绍了如何获得在Visual Studio参数提示/完成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通常使用Eclipse进行编码,其中有一个pretty不错的参数,完成功能:当你调用一个方法,你键入刚过<大骨节病>(,它会告诉你的参数列表,并突出显示你在哪里,你键入:

I usually use Eclipse for coding, which has a pretty nice parameters completion feature: when you are calling a method, just after you typed (, it will show you the list of parameters, and highlight where you are as you type:

我如何能得到类似的帮助在Visual Studio 2012中?

How can I get similar help in Visual Studio 2012?

我知道,<大骨节病>按Ctrl + K,Ctrl键+ I 显示有关你的光标当前突出了一些信息,但如果你已经开始打字的东西这是行不通的。如果键入的MyMethod(ARG1,键,然后按下快捷键(或任何其他如<大骨节病> Ctrl +空格键或<大骨节病>按Ctrl + Shift +空间),我没有得到任何有用的东西。

I know that Ctrl + K, Ctrl + I shows some info about what your cursor currently highlights, but it doesn't work if you already have started typing something. If I type MyMethod(arg1, and then hit the shortcut (or any other, such as Ctrl + Space or Ctrl + Shift + Space), I don't get anything useful.

推荐答案

您可以使用:

<大骨节病>控制 + <大骨节病>移 + <大骨节病>空格。这带来了参数列表光标目前处于的方法。

Ctrl+Shift+Space. This brings up the argument list for a method your cursor is currently in.

例如:

pressing <大骨节病>控制 + <大骨节病>移 + <大骨节病>空格后用光标一,结果:

Pressing Ctrl+Shift+Space with the cursor after "a", results in:

您可以检查此正确地分配在键盘设置,如 Edit.ParameterInfo

You can check this is properly assigned in the keyboard settings, as Edit.ParameterInfo:

这篇关于如何获得在Visual Studio参数提示/完成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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