简体   繁体   中英

Visual Studio 2022 not showing parameter XML docs tooltips on mouse over

As pictured, the "param" part of the summary is not showing on mouse over panel. Should I expect them to be there or is the "param" functionality not working as I think it should? The other tags work (like "remarks" etc.), so I assume I'm just not looking in the right place to see where "param" shows up. I thought they would show on the mouse over panel. 在此处输入图像描述

Did a bunch of searching online, but I couldn't find anything related specifically to this issue.

EDIT: In response to below: Mouse was over the function name. When I mouse over the parameter, the description shows. This isn't the functionality I was looking for though, as if I can mouse over the parameter I can instead just read the actual comment.

Below, someone pointed out that maybe it's because I was mousing over the function declaration instead of a call to the function. This was something I thought of before posting, but I will post what I see when I mouse over a call to a function with the summary and parameter tags, and a picture of when I am attempting to input parameters into said call.

Adding parameters:

使用摘要标签向函数添加参数

Mousing over function call:

在此处输入图像描述

Interestingly, the "remarks" tags work, but only when mousing over the name of the method (either when invoking or mousing over the declaration), but still nothing shows up when the panel appears when inputting parameters into a call/invocation of the method.

在此处输入图像描述

Intellisense doesn't treat the param tag the way you want it to.

These are the times where you can see the info specified in the param tags:

  1. When hovering directly over the parameters - not so helpful as the OP mentioned as you have visibility of the param tags anyway

  2. When providing values for the parameters when calling the method - this is the more helpful instance

Note: The OP mentioned that remarks shows when hovering over the method name. This is because remarks relate the whole method and are important to see along with the summary. Parameter info can become cumbersome for methods with many parameters so they are probably not shown when hovering over the method to make things cleaner.

I'm including a link that describes intellisense behaviour in relation to the param tags: https://docs.microsoft.com/en-us/visualstudio/ide/using-intellisense?view=vs-2022#:~:text=Completion%20Mode.-,Parameter%20Info,-Parameter%20Info%20gives

The description of the parameters is visible when calling this method

在此处输入图像描述

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM