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.
This is enhancement request. Suppose a method has a empty lines between code. Is it possible for netbeans to remove these lines[empty] when formatting [Applicable within method level only and NOT between methods.] Say if some option can be added in editor options for formatting. Default can be to leave as is. If the user enables it, then netbeans can remove blank lines withing methods while formatting Please do consider this issue before making any decision abt rejecting... -:) Will be nice..
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss
There is still no such option in 8.2 (Build 201608050002). I'd expect this option to be available at Tools > Options > Editor > Formatting > <Language> > Blank Lines. Example in JavaScript how this function is supposed to work (if set to 1): Original source: function function1() { let test = 'bla'; return test; } function function2() { let variable1 = 1; let variable2 = 2; return variable1 + variable2; } Formatted source: function function1() { let test = 'bla'; return test; } function function2() { let variable1 = 1; let variable2 = 2; return variable1 + variable2; } This is valid for other languages like PHP, too. Sebastian