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 129600 - Newlines between methods - add an option to preserve them
Summary: Newlines between methods - add an option to preserve them
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-08 12:15 UTC by lilianne_blaze
Modified: 2013-09-02 14:24 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 lilianne_blaze 2008-03-08 12:15:53 UTC
Please add an option for formatting (alt+shift+f) to preserve empty lines between methods, fields and comments as it
does inside methods' bodies.

I know it seems trivial, but it does help to visually organize code.
Comment 1 lilianne_blaze 2008-03-08 12:17:43 UTC
Trivial example:


  public void a()
  {
    // do something
    
    // do something
  }
  // end of a* 
  
  
  
  
  public void b2()
  {
    b2(0, 0);
  }
  public void b2(int param1, int param2)
  {
    // do something
    
    
    // do something
  }

Press alt+shift+f and you have:

  public void a()
  {
    // do something
    
    // do something
  }
  // end of a* 
  
  public void b2()
  {
    b2(0, 0);
  }

  public void b2(int param1, int param2)
  {
    // do something
    
    
    // do something
  }

Exactly one empty line between methods, visual grouping lost.