How to show method parameter tooltip in C#?

C#Visual StudioVisual Studio-2010Intellisense

C# Problem Overview


VS2010:

In VB I can place the cursor inside an existing method's parameter brackets and type a 'space', which will bring up the tooltip with description of the parameter I'm at. This is not the case in C#. I have to delete the whole brackets including the parameters, and retype the left bracket, for this tooltip to show. Is there some shortcut or setting to change this behavior? I tried hitting ctrl, shift, alt, but it has no effect.

C# Solutions


Solution 1 - C#

Ctrl+Shift+Space will do what you want.

You might want to check out a poster of key bindings.

Solution 2 - C#

It's Ctrl-K Ctrl-I for VS2015. In case people from the future are wondering wandering.

Solution 3 - C#

I don't understand what you mean exactly. But I use this coding for method parameters tooltip.

/// <summary>
/// Do work function
/// </summary>
/// <param name="id">This is user's Id.</param>
/// <param name="name">This is user's Name.</param>
/// <param name="surname">This is user's surname. </param>
private void DoWork(int id, string name, string surname)
{ 
    // do stuff
}

Solution 4 - C#

Ctrl + K, Ctrl + P

Worked for me where Ctrl + Shift + Space didn't. Perhaps due to Resharper?

Solution 5 - C#

Visual Studio 2019 with VsVim extension

Works both in NORMAL and INSERT modes, for C# and C++ with:

Ctrl+Shift+Space

Just make sure to place the caret right after the first parenthesis:

C#

"Value".Contains(|   <-- caret

C++

glClearColor(|  <-- caret

Solution 6 - C#

The most reliable way to know it (due to plugins etc) is to look it up in settings.

  1. Open settings window: Tools -> Options
  2. Go to Environment -> Keyboard
  3. (optional) Filter commands via Show commands containing: field (e.g. type in "param" there)
  4. In VS 2017, 2019 and 2022 the name is "Edit.ParameterInfo" (default binding is CTRL + SHIFT + P)
  5. In ReSharper 2021 the name is ReSharper.ReShareper_ParameterInfoShow

Also here is a list of all shortcuts in MS docs, which has command names along with description. I find it easier to search commands there rather then inside in-app settings.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionbretddogView Question on Stackoverflow
Solution 1 - C#LloydView Answer on Stackoverflow
Solution 2 - C#off99555View Answer on Stackoverflow
Solution 3 - C#Serkan HekimogluView Answer on Stackoverflow
Solution 4 - C#someoneView Answer on Stackoverflow
Solution 5 - C#rbentoView Answer on Stackoverflow
Solution 6 - C#Alexander MalakhovView Answer on Stackoverflow