This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 254439 - [81cat] Comment formatting inversion of Wrap One Line Comments option
Summary: [81cat] Comment formatting inversion of Wrap One Line Comments option
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-17 14:17 UTC by -Silver-
Modified: 2015-08-17 14:34 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description -Silver- 2015-08-17 14:17:16 UTC
Hi,
I would like that the behavior of "Wrap One Line Comment" changes.

Currently if I have the comment:
/** This is 
    a comment */
 
and I check "Wrap One Line Comment" after formatting it become:
/** 
   This is 
   a comment 
*/

But if at this point I uncheck "Wrap One Line Comment" and reformat it remains the same.

It would be nice if in this case it come back to 
/** This is 
    a comment */

Best regards,


--
Giuseppe Tino
Comment 1 -Silver- 2015-08-17 14:34:27 UTC
Furthermore would be nice if when the option "Wrap One Line Comment" is UNChecked the text is left aligned to the first line (with two spaces between the '*' and the starting of the line instead that with one space).

For example currently the alignment is: 
/** Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam
 * nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat
 * volutpat.
 * @param inputParameter Lorem ipsum dolor sit amet, consectetuer adipiscing
 * @param in2            Lorem iposum dolor sit amet, consectetuer
 * @throws FileNotFoundException Lorem ipsum dolor sit amet, consectetuer
 * @throws ObjectStreamException Lorem ipsum dolor sit amet, consectetuer
 *                               adipiscing elit, se diam nonummy nibh */

If the "Wrap One Line Comment" is UNChecked should be like this:

/** Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam
 *  nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat
 *  volutpat.
 *  @param inputParameter Lorem ipsum dolor sit amet, consectetuer adipiscing
 *  @param in2            Lorem iposum dolor sit amet, consectetuer
 *  @throws FileNotFoundException Lorem ipsum dolor sit amet, consectetuer
 *  @throws ObjectStreamException Lorem ipsum dolor sit amet, consectetuer
 *                                adipiscing elit, se diam nonummy nibh */