473,507 Members | 2,430 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adding comments aka QuickInfo to intellisense

1 New Member
Adding comments aka QuickInfo to intellisense:

On this forum I found in it's history the following thread:
http://www.thescripts.com/forum/thread254408.html

Someone also wanted to add comments to his methods that would show up using intellisense.

In the above mentioned thread Relaxin mentions:
> /// <summary>
> /// Adds string to collection.
> /// </summary>
> /// <remarks>
> /// This is a remark.
> /// </remarks>
> /// <param name="str">The ostring you want to add.</param>
> public void AddString(string str)
> {
> // implementation
> }

Which indeed is the trick, unfortunately he forgets to mention that you need to do ONE special thing before it works. In the C# file in which you add these summary's (the text in this summary will show up as QuickInfo in Intellisense, param name will show up when parameters are entered and remark is just a remark that will not show up).

In VS 2005 goto: Project / NameOfYourProject Properties / Build
here you will find under output: XML document file: with a CheckBox in front. Simply check this checkbox. VS will give your XML outputfile a name and a place (which in most cases will be fine)

That's all.

I found the following website for this subject helpfull:
http://msdn.microsoft.com/msdnmag/issues/02/06/XMLC/

Goodluck
Jan 10 '08 #1
1 1582
Plater
7,872 Recognized Expert Expert
I recently turned that checkbox on, but all it did was build an XML file.
All of my intellisense stuff was already there, no special settings required.


And as a quick time saver tip:
If you place your cursor on the line above a function (or other declaration) and press the / key three times ( "///" ) Visual studio will auto-drop a template for everything in there.

For example this line:
Expand|Select|Wrap|Line Numbers
  1. protected void btCASubmit_Click(object sender, EventArgs e)
  2.  
Will auto-drop this as a template:
Expand|Select|Wrap|Line Numbers
  1. /// <summary>
  2. /// 
  3. /// </summary>
  4. /// <param name="sender"></param>
  5. /// <param name="e"></param>
  6. protected void btCASubmit_Click(object sender, EventArgs e)
  7.  
Jan 10 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1767
by: Saso Zagoranski | last post by:
Hi! I have a question about XML comments included in VS. net. Let's say I have a project in a solution. And this project has a class with some methods: class MyClass {
1
6070
by: Bob | last post by:
The xml comments I have on my public methods (using summary tag) only shows up in the project where the class itself is in. Once I compile the project (a class libraray project), and refrence the...
1
1723
by: Max | last post by:
Searched all over google and can't seem to find how to do this. How do I go about adding comments about my own functions and sub-procedures? Like when I use them, the tool-tip tells me more then...
4
1259
by: Rotkiv Namego | last post by:
Hi I have a maybe simple question, but anyway, when I use the.Net framework there are lots of very usfull comments while seting properties to objects. (the little yellow box on the secound...
2
1068
by: | last post by:
How do I add information about parameters to intellisense, so developers using the subs and functions know what they are for(the subs and the parameters).
1
1098
by: Ahmed | last post by:
Hi everyone, I have created a custom control. I would to add a summary for each method to show in the object browser or as a tooltip when hightlighted. I heard that is not possible in VB .NET...
3
1925
by: Jason L James | last post by:
Hi All, Is there any way of adding intellisense descriptions to my own classes, class methods and functions in VB.NET? I think it can be done in c# using /// before the method declaration,...
6
7265
by: Brett Romero | last post by:
I've added comments to a method in A.dll. B.exe references A.dll. I see the new method and only the stock comment (type methodname()) in intellisense. However, when I use object browser from...
98
4490
by: tjb | last post by:
I often see code like this: /// <summary> /// Removes a node. /// </summary> /// <param name="node">The node to remove.</param> public void RemoveNode(Node node) { <...> }
0
7111
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7319
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7031
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7485
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5042
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.