Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Jii on November 08, 2009, 02:21:17 am

Title: How to configure "Insert -> All class methods..." auto documentation
Post by: Jii on November 08, 2009, 02:21:17 am
I just discovered the righteously awesome feature, right clicking and selecting "Insert -> All class methods without implementation." This is big time saver for me, except that the documentation style doesn't fit my project. How do you configure the template documentation symbols used when the members are filled in? Here's a verbose example:

By default, it looks something like this:

/** @brief KD_Tree
  *
  * @todo: document this function
  */
 KD_Tree::KD_Tree()
{

}

I'd like it to fit my team's documentation style, to look like this:

//------------------------------------------------------------------------------
/// Document this function
//------------------------------------------------------------------------------
KD_Tree::KD_Tree()
//------------------------------------------------------------------------------
{

}
//------------------------------------------------------------------------------

Where do I configure this? Thanks!
Title: Re: How to configure "Insert -> All class methods..." auto documentation
Post by: Jenna on November 08, 2009, 10:14:45 am
It's hardcoded (at the moment) in "codecompletion.cpp".

You can file a feature-request (so the request does not get lost) at berlios for it to be configurable: http://developer.berlios.de/account/login.php?return_to=%2Ffeature%2F%3Ffunc%3Daddfeature%26group_id%3D5358 (http://developer.berlios.de/account/login.php?return_to=%2Ffeature%2F%3Ffunc%3Daddfeature%26group_id%3D5358) .
You need a berlios account to do so.
Title: Re: How to configure "Insert -> All class methods..." auto documentation
Post by: Jii on November 09, 2009, 02:05:51 am
Thanks, I just submitted a feature request.