Posts IntelliSense Comments – Tip of week #6
Post
Cancel

IntelliSense Comments – Tip of week #6

When comments exist for a method or class, they are displayed in the IntelliSense pop up shown in below figure

These comments can be created a number of different ways. If you are using C#, then these comments are pulled from the XML-based comments in your code, like the following example:

/// <summary>

/// This method loads any number of snippets into the toolbox

/// </summary>

public static void LoadSnippets( )
 
If you have description for the paramerters in you function also, here is the sample

/// <summary>

/// This method loads any number of snippets into the toolbox

/// </summary>

/// <param name="a">First number to add</param>

/// <param name="b">Second number to add</param>

public static void addNumbers(int a, int b )

IntelliSense is one of the best features of Visual Studio, and using the shortcut keys

 summarized in  below table will allow you to get the most out of this great feature.

 

This post is licensed under CC BY 4.0 by the author.