Code Completion / Doxygen [message #533269] |
Wed, 12 May 2010 15:49  |
Eclipse User |
|
|
|
Hi all,
I've got a little problem while using code completion in CDT.
I've created a C project, and creating a new C source file in it.
I created a new function in this file, say :
void sys_log_buffer(unsigned char log_severity, const char *log_string, ...)
{
}
If I wrote at the beginning of this line, and press Enter, Eclipse create a comment section like this :
/**
*
* @param log_severity
* @param log_string
*/
This is great but i want to customize a little this default message to make it Doxygen compliant. But my problem is I can't find anywhere in the Editor Preference how i can modify this comment.
I've search in Code Style / Code Templates (try to modify each of us, but with no result)
and also search in Editor / Templates (try to create a new template named /** , or modifying comment templates but with no result too)
Anyone can help me ?
|
|
|
|
|
|
|
|
Re: Code Completion / Doxygen [message #1752474 is a reply to message #1752397] |
Tue, 24 January 2017 04:20  |
Eclipse User |
|
|
|
another patch is :
in the endof customizeDocumentAfterNewLine:
add:
if(content.indexOf("@brief") >= 0) //$NON-NLS-1$
{
buf.deleteCharAt(buf.length()-1); //delete \n if we have added "@brief"
buf.deleteCharAt(buf.length()-1); //delete \n if we have added "@brief"
buf.deleteCharAt(buf.length()-1); //delete \n if we have added "@brief"
buf.deleteCharAt(buf.length()-1); //delete \n if we have added "@brief"
}
before:
buf.append(indent(content, indentation + MULTILINE_MID, lineDelim));
the comment from :
/**
*
* @brief
* @param str
Become :
/**
* @brief
* @param str
but one little scratch:
/**
* |@brief <------
the cursor is not at appropriate place.
|
|
|
Powered by
FUDForum. Page generated in 0.03223 seconds