Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


How to comment for IntelliSense?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Conny14156   Members   -  Reputation: 272

Like
0Likes
Like

Posted 05 March 2014 - 02:40 PM

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]

 



Sponsor:

#2 Buckeye   Crossbones+   -  Reputation: 6857

Like
1Likes
Like

Posted 05 March 2014 - 03:21 PM

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();

Edited by Buckeye, 05 March 2014 - 05:26 PM.

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


#3 Conny14156   Members   -  Reputation: 272

Like
0Likes
Like

Posted 05 March 2014 - 05:12 PM

oh vs2013, well time to upgrade. Thanks 

P.S

anyway to make this work for 2010?


Edited by Conny14156, 05 March 2014 - 05:46 PM.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS