473,786 Members | 2,744 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.ht ml

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(strin g 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 / NameOfYourProje ct 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 1599
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
1781
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
6087
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 DLL from another project, the comments don't show up anymore in VS.NET interllisense. Does anyone know what I need to do for the comments to show up when using the DLL in another project?
1
1740
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 just how it was declared?
4
1272
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 linethere is something like "Str1: The string to search for") Now my question is, can you ad this type of comments to your own objects you create, and how?
2
1076
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
1124
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 and it is only available in C#. Is that true? Thank you,
3
1944
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, but is this possible in VB? many thanks,
6
7287
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 B.exe to view A.dll, I see the new method and all the comments. How do I get the comments to come through in B.exe via intellisense when I scroll to that method? Thanks, Brett
98
4626
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
9650
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9497
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10363
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10164
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7515
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6748
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4067
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.