[jbosstools-issues] [JBoss JIRA] (ERT-349) Add JavaScript formatting option for anonymous functions [EBZ#315507]

Gorkem Ercan (JIRA) issues at jboss.org
Wed Jul 27 08:24:00 EDT 2016


     [ https://issues.jboss.org/browse/ERT-349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gorkem Ercan updated ERT-349:
-----------------------------
    Sprint: devex #118 July 2016


> 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)



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list