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 132001 - Adds newline after end of line comment on reformat
Summary: Adds newline after end of line comment on reformat
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-04 02:13 UTC by studdugie
Modified: 2013-09-02 14:22 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 studdugie 2008-04-04 02:13:54 UTC
The formatting engine keeps injecting a newline after a end of line style comment. It doesn't do this w/ a regular
comment. I would like it to stop doing it.

For example, after typing the following lines of code into the editor ... :
int x = 1;
int y = 2;// The Y axis.
int z = x + y;

... then ALT+SHIFT+F (format file), I end up w/:
int x = 1;
int y = 2;// The Y axis.

int z = x + y