Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: GravityWell on October 27, 2012, 05:40:14 pm

Title: Function/Class Comments and Intellisense
Post by: GravityWell on October 27, 2012, 05:40:14 pm
I see that Codeblocks has "code completion" which is good for displaying member functions and function parameters.

There is a feature in Visual Studio where functions can have XML comments associated with them, and then intellisense and tooltips will include the comments, like this:
(http://img821.imageshack.us/img821/4281/xmlcomments.png)

Is there a way to do something similar in Codeblocks?
Title: Re: Function/Class Comments and Intellisense
Post by: MortenMacFly on October 27, 2012, 06:10:28 pm
Is there a way to do something similar in Codeblocks?
Not at the moment. However, using "switch header source"/"jump to declaration/implementation" in combination with split view / editors besides each other this is kind of implemented. That's at least how I do it and its really convenient.
Title: Re: Function/Class Comments and Intellisense
Post by: killerbot on October 27, 2012, 07:35:19 pm
or showing the doxygen help, is also a feature sometimes found in editors ...
Title: Re: Function/Class Comments and Intellisense
Post by: cacb on October 27, 2012, 07:36:57 pm
If a feature like this was implemented, I would want it to be compatible with Doxygen syntax, so that "intellisense" and generated documentation always showed exactly the same thing. It should work for undocumented code as well, of course, showing the class, function and variable names. It is often enough.

What bugs me a little about the way such intellisense features work in C::B, is that I often want to call functions that I have just created in another project, and that information hasn't been updated in the help system yet, so I am often left with no help (except looking up the header file manually). Perfectly understandable, but it limits the usability unless you develop against a stable library. Still I would not want C::B to use my computer resources to constantly rescan my code to fix this issue, so I am allright with how things are.
Title: Re: Function/Class Comments and Intellisense
Post by: oBFusCATed on October 29, 2012, 07:49:01 pm
It can just show the comment above the function declaration/definitions/both.