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 121956

Summary: Can the java formatter be told to leave blank lines as they are
Product: java Reporter: gwalbran <gwalbran>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description gwalbran 2007-11-15 02:29:59 UTC
The Options, Java Code, Formatting options allow you to specify how many blank lines should be before and after various
code elements. The problem is I don't always want to do the same thing. For instance if fields are related I don't put
in blank line between them, if they are not related I do put a blank line in.

I would like to tell the formatter to not change blank lines before or after fields. I tried setting the field before
and after options to blank and to -1 but both were treated as if 0 was specified.
Comment 1 gwalbran 2008-05-09 04:33:13 UTC
Netbeans 6.1 java formatter leaves blank lines unchanged