Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
384 views
in Technique[技术] by (71.8m points)

vb.net - How to add a mouseover summary in visual studio

I would like to add a summary to my function that when I call the function, I can hover over the name of the function to see what it does. It would be nice if I could do the same thing for each of the parameters.

I want this:

enter image description here

And this:

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Put your cursor immediately above the function/sub you would like to add the summary to

enter image description here

Type the comment symbol for the language you are using three times, in vb.net it is this ' symbol. You should then see some auto-generated code for the summary.

![enter image description here

If there are any parameters in the method you are adding the summary to, there will be a spot to enter descriptions for these as well.

enter image description here

Enter your summary in the space indicated. You should now be seeing these descriptions when you call the method elsewhere in your code.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...