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

Summary: [81cat] Comment formatting inversion of Wrap One Line Comments option
Product: editor Reporter: -Silver-
Component: Formatting & IndentationAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P4    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

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 */