How to comment for IntelliSense?

Started by
1 comment, last by Conny14156 10 years, 1 month ago

Hi,

I was wondering if there it was possible to comment function so it appears in intellisense? like in c# but for c++

[image]http://tinypic.com/view.php?pic=5mcm4g&s=5#.UxeLUPl5N2E[/image]

Advertisement

If you mean functions and variables in your own code - yep. Just add comments preceding the [declarations]. (for VS2013 Express, anyway)


// Here's how I use this function.
// blah-blah-blah
void MyFunction();
// this variable is used for anything you want
void useForAnyThing;

EDIT: Oops. Not definition - declaration. Changed that above.

When you mouseover MyFunction or useForAnything in your code, the comments should popup.

Works with bounded (rather than single line) comments also.


/*
This is a rather extensive
explanation for how to use this function.
Be sure to do such-and-such
And don't forget this-and-that
*/
void MyFunction();

Please don't PM me with questions. Post them in the forums for everyone's benefit, and I can embarrass myself publicly.

You don't forget how to play when you grow old; you grow old when you forget how to play.

oh vs2013, well time to upgrade. Thanks

P.S

anyway to make this work for 2010?

This topic is closed to new replies.

Advertisement