如何获得在Visual Studio参数提示/完成? [英] How to get parameter hints/completion in 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屋!