This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CODECOMPOSER: CODECOMPOSER

Part Number: CODECOMPOSER


Tool/software:

I'm new to the new version of CCS (Version 20.0.2 (20.0.2.333)).  In the older version of CCS (v5 or v8 I don't remember exactly) when I start my multi-line comment with /* and hit the return key to start a new line, the IDE will automatically insert the * on the next line, with an indenting space before the * and a couple spaces after the * to align the text to the previous lines:

/**********
 *  line 1
 *  line 2
 *  line 3 ...
**********/

I'm missing that feature in CCS v20.  After hitting the return key on a /* comment line, the new line turns out like this:

/**********
 *  line 1
line 2
line 3 ...
**********/

These lines are still treated as comment, and it doesn't affect the compilation of the code.  I just have to edit and maintain a good number of old files all having their comments done in that way, and I'm asked to keep the same  practice for any new comment.  It's annoying to insert the extra * and align the text with spaces for each new line.  Can I configure CCS v20 to insert the extra * and aligning spaces?  

  • Hello,

    After hitting the return key on a /* comment line, the new line turns out like this:

    /**********
     *  line 1
    line 2
    line 3 ...

    I actually see something different. When I type "/*", it automatically appends the closing "*/". Is this contrary to what you see?

    In any case, there is not yet an option to fully mimic what you see with CCS Eclipse. There may be a suitable extension the Theia marketplace that can add similar functionality.

  • I missed mentioning that, and yes I do get the closing */ automatically after */ + return.  Only within or between the /* */ do I not get the extra * and appending spaces.  Guess I'll have to live with this then.

  • It is worth exploring the Theia marketplace to see if there is an extension that can help with this.