Bug 190457 - Add code style for comments
Summary: Add code style for comments
Status: CLOSED DUPLICATE of bug 540001
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 4.0   Edit
Hardware: PC Linux
: P3 enhancement with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Doug Schaefer CLA
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2007-06-01 08:49 EDT by Martin Petricek CLA
Modified: 2019-05-18 02:32 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***