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 228759 - preserve space before parentheses for anonymous function declaration
Summary: preserve space before parentheses for anonymous function declaration
Status: RESOLVED WORKSFORME
Alias: None
Product: javascript
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.3.1
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-19 11:53 UTC by michael.virnstein
Modified: 2014-11-13 11:43 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 michael.virnstein 2013-04-19 11:53:12 UTC
I like to have the option to have a space between the function keyword and the opening parenthesis of the function, when dealing with anonymous functions, but no space between function name and opening parenthesis for named functions.

var f = function () {

};

function f() {

}
Comment 1 Petr Pisl 2014-11-13 11:43:07 UTC
This is how the formatter behaves now. I'm closing this. Please reopen, if I  missed something.