[jbosstools-issues] [JBoss JIRA] (ERT-349) Add JavaScript formatting option for anonymous functions [EBZ#315507]
Friendly Jira Robot (JIRA)
issues at jboss.org
Mon Jul 18 18:26:00 EDT 2016
Friendly Jira Robot created ERT-349:
---------------------------------------
Summary: 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
Fix For: Future
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)
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jbosstools-issues
mailing list