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 72634 - Not enough flexibility in Auto Code Formatting
Summary: Not enough flexibility in Auto Code Formatting
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker with 2 votes (vote)
Assignee: issues@editor
URL:
Keywords:
: 72635 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-02-14 03:28 UTC by drichan
Modified: 2008-04-09 10:52 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 drichan 2006-02-14 03:28:11 UTC
The Code Formatter tool doesn't offer enough flexibility in controlling how 
Code is formatted {} spacing new lines etc. 

Eclipse offers many more options to customize the code formatting of Java code 
etc.
Comment 1 Jiri Prox 2006-02-14 13:14:56 UTC
*** Issue 72635 has been marked as a duplicate of this issue. ***
Comment 2 Martin Roskanin 2006-02-14 13:16:02 UTC
*** Issue 72635 has been marked as a duplicate of this issue. ***
Comment 3 Jesse Glick 2008-04-08 18:47:01 UTC
This is probably FIXED in 6.0?
Comment 4 mclaassen 2008-04-08 19:07:04 UTC
As far as I am concerned, it is basically fixed.  I really like the formatting features in 6.0.   I haven't really
thought much about the formatting features in a while, which probably means they are working for me.  However, I would
still really like to see 106815 fixed.

My preferred spacing is:
package
<blank line>
imports
<blank line>
Class name
<blank line>
variable group
  [<blank line>
   variable group]...
<blank line>
First constructor

Netbeans removes most of these blank lines, although some are configurable.

Maybe the option should be "at least X lines" between things.  That way, if I add a line for readability, it is not
removed by the reformatter.

Comment 5 Vitezslav Stejskal 2008-04-09 10:52:45 UTC
Ok, I'm marking this as FIXED. The issue #106815 is open and will be addressed separately. Thanks