]
Ilya Buziuk updated ERT-349:
----------------------------
Fix Version/s: Neon.1 (4.6)
(was: Future)
Add JavaScript formatting option for anonymous functions
[EBZ#315507]
---------------------------------------------------------------------
Key: ERT-349
URL:
https://issues.jboss.org/browse/ERT-349
Project: Eclipse Release Train
Issue Type: Task
Components: JSDT
Reporter: Friendly Jira Robot
Priority: Trivial
Labels: Future, General, bzira
Fix For: Neon.1 (4.6)
Build Identifier: Build id: 20100218-1602
It should be possible to set white-space formatting rules differently for anonymous
functions and named functions.
Use-case: It should be possible to stipulate that white-space must precede the opening
parenthesis in an anonymous function declaration while named function declaration should
not.
Example:
var foo = function () {
// some code
};
function foo() {
// some code
}
Reproducible: Always
Steps to Reproduce:
Not really a bug, more of a feature request. Go to Window > Preferences > Web >
JavaScript > Code Style > Formatter. Under the White Space tab open Declarations and
see that there is only a setting for Functions (not Named Functions and Anonymous
Functions)