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.
In the Editor / Formatting / Language: PHP, Category: Alignment / Group Multuiple Alignment , there is a [ ] Assignment option. This allows me to make more readable code like this: $foo = foo(); $fooBar = fooBar(); where the equal sign is aligned in both lines. There is no option in the Language: JavaScript to do the same. Every time I type: var foo = foo(); var fooBar = fooBar(); The IDE rewrites the lines removing the spaces before the equal sign in the firs line.
This also happens for defining an object. If I type var app = new MyApp({ quitOnError: true, email: user, password: pass }); After saving the document, the spaces are rewritten to var app = new MyApp({ quitOnError: true, email: user, password: pass });
This is not implemented yet. Marking as enhancement. Thanks.