Book a Demo

Author Topic: Modify comment style for code generation  (Read 2181 times)

MatthiasH

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Modify comment style for code generation
« on: September 22, 2009, 11:50:42 pm »
Hi,

I am tweaking the code templates for source code generation to match our coding style guide. So far I am getting along but now I am stuck:
For the source code comments describing a function and its parameters I would like to use the JavaDoc style, but using only slashes instead of slash-asterisk combinations. Eg.

Now:

Code: [Select]
/**
 * some comments
 *
 * @param iVal      an important value
 */

What I would prefer:

Code: [Select]
///
/// some comments
///
/// @param iVal      an important value
///

Even better:

Code: [Select]
///////////////////////////////////////////////////
/// some comments
///
/// @param iVal      an important value
///////////////////////////////////////////////////

I searched help and the forum but I did not find an indication that this can be changed at all. Did I miss something?

By the way, we are using Version Control (private .eap, the package XMIs in SVN) and I am just wondering: The code templates are probably stored in the eap file and thus not included in version control, right? So I would need to backup the .eap file manually?

Regards,
Matthias

(EA 7.5 848 Professional)
« Last Edit: September 22, 2009, 11:51:31 pm by mhildebrand »