Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 190457

Summary: Add code style for comments
Product: [Tools] CDT Reporter: Martin Petricek <singularita>
Component: cdt-coreAssignee: Project Inbox <cdt-core-inbox>
Status: CLOSED DUPLICATE QA Contact: Doug Schaefer <cdtdoug>
Severity: enhancement    
Priority: P3 CC: eclipse.sprigogin, marco.stornelli
Version: 4.0Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Martin Petricek CLA 2007-06-01 08:49:09 EDT
In C++/Code style in options, you can select a code style for various elements, with some predefined default styles. 

However, when I start typing comments in C++ code, eclipse autoindents the comment to this format:
/*
 * Line 1
 * Line 2
 */
(Adding extra " * " on start of each line)

But I use formatting like this in all my source code:
/*
 Line 1
 Line 2
*/

I found no option to change code style for comments, so they will be autoformatted according to my style when I start typing them.

I think it may be convenient to add feature to alter formatting of comments
Comment 1 Marco Stornelli CLA 2019-05-18 02:32:19 EDT

*** This bug has been marked as a duplicate of bug 540001 ***