[
https://issues.apache.org/jira/browse/NETBEANS-1641?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Christian Lenz updated NETBEANS-1641:
-------------------------------------
Issue Type: Improvement (was: New Feature)
> Adding real formatting/beautifier for JS
> ----------------------------------------
>
> Key: NETBEANS-1641
> URL: https://issues.apache.org/jira/browse/NETBEANS-1641
> Project: NetBeans
> Issue Type: Improvement
> Components: javascript - Editor, javascript - Formatting &
> Indentation
> Affects Versions: 8.2, 10.0
> Reporter: Christian Lenz
> Priority: Major
>
> When I try to format JS code which looks like this:
> {code:javascript}var test = {foo: [{bar: 3}]};var test2 = {foo: [{bar:
> 3}]};var test3 = {foo: {bar: [4]}};{code}
> It will format it like this:
> {code:javascript}
> var test = {foo: [{bar: 3}]};
> var test2 = {foo: [{bar: 3}]};
> var test3 = {foo: {bar: [4]}};
> {code}
> But expected behavior is a well formatted/beautified JS code, which should
> look like this:
> {code:javascript}
> var test = {
> foo: [
> {
> bar: 3
> }
> ]
> };
> var test2 = {
> foo: [{
> bar: 3
> }]
> };
> var test3 = {
> foo: {
> bar: [4]
> }
> };
> {code}
> Based on the formatting rules.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists