Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started 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?
-
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.
-
or showing the doxygen help, is also a feature sometimes found in editors ...
-
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.
-
It can just show the comment above the function declaration/definitions/both.