How to get parameter hints/completion in Visual Studio?

后端 未结 3 1627
失恋的感觉
失恋的感觉 2021-01-01 20:12

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 t

相关标签:
3条回答
  • 2021-01-01 20:28

    You can use:

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

    Example:

    typing

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

    ctrlshiftspace

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

    assigned

    0 讨论(0)
  • 2021-01-01 20:46

    For my case, neither Ctrl+Shift+Space nor Ctrl+K+P work.. eventually I nailed it down to this settings:

    Now whenever I typed (, intellisense will automatically pop up!.. nice!

    As it turned out, this is caused by Resharper..., the Resharper uninstall doesn't correctly restore the original Visual Studio settings.

    0 讨论(0)
  • 2021-01-01 20:46

    visual studio 2019

    you can add a button to tool bar:

    view>toolbar> text editor.

    Then:

    view>toolbar>Customize:

    Select commands tab.

    Select Toolbar radio button.

    On toolbar dropdown select Text Editor.

    command location Press "add new command.

    Select Edit [wait to populate].

    Select parameter Info. command image.

    Hope this helps.

    0 讨论(0)
提交回复
热议问题