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 243027

Summary: No formatting options for blank lines
Product: javascript Reporter: whallz
Component: Formatting & IndentationAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal CC: avandecreme, shuuny
Priority: P2    
Version: 8.0   
Hardware: PC   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description whallz 2014-03-19 01:14:43 UTC
for e.g. when i have a js file like this one:

var polls = {
    'current': {},
    'anotherVar': 1,
    'init': function() {
      // code
    },
    'anotherFuncion': function() {
    }
};

if i wanted it to look like this:

var polls = {

    'current': {},
    'anotherVar': 1,

    'init': function() {
      // code
    },

    'anotherFuncion': function() {
    }

};

when calling Source->Format, it should respect my new-lines-for-readability