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 230586 - Introduce keep or no option during formatting
Summary: Introduce keep or no option during formatting
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-31 14:48 UTC by gualtiero65
Modified: 2013-05-31 14:48 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 gualtiero65 2013-05-31 14:48:48 UTC
It would nice to have Java formatting options to keep or not keep

- line breaks
- comments on first column
- chained method calls

Example for "line breaks":

String myVar = String.format("Hello, %s", 
    name);

If "keep line breaks" is yes, the file formatting will not touch the above two lines.

If "keep line breaks" is no, the file formatting will change as follows:

String myVar = String.format("Hello, %s", name);

but only if right margin value is respected.

Similar actions for the other options.