Jump to content

View more

Image of the Day

WIP title screen for #DeathOfAPartisan #screenshotsaturday #gamedev https://t.co/qJNhfZCvd4
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

How to comment for IntelliSense?

4: Adsense

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   

279
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]

 



#2 Buckeye   GDNet+   

10743
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.

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


#3 Conny14156   Members   

279
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.