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.
Steps to reproduce: - Create a JavaFX Script file: --------------------------------------------- function sqr ( x: Number ) { x * x } --------------------------------------------- - Format it --------------------------------------------- function sqr ( x: Number ) { x * x } --------------------------------------------- The suggestion is to not format functions that are written on one line. The same is for short actions: ---------------------------------------------------------------- import javafx.ext.swing.*; Frame { closeAction: function() { java.lang.System.exit( 0 ); } } ----------------------------------------------------------------
There is no option like "Keep short functions inline" unfortunately. The formatting of document depends on Java formatting settings. Well, maybe we should introduce some special options for JavaFX format but we are after freeze. Switching into enhancement request. And lowering priority.
.
reassigning to new owner.
fixed, old reformat has been disabled
verified