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: 1. add the following source to the editor: -------- import javafx.animation.KeyFrame; import javafx.animation.Interpolator; var a; KeyFrame { values : [ a => 0.0 tween Interpolator.LINEAR ] time: 1s } ----------- 2. After time: 1s press enter to add a new line (will automatically tab in for you) 3. Drag/drop Animation > Action into the new line You get: KeyFrame { values : [ a => 0.0 tween Interpolator.LINEAR ] time: 1s action: function() { } } The 'action' attribute is not formatted
marina-netbeans-plugin ยป #81
It is preformatted before and pasted correctly. Indent before is that 4 spaces what was there.
The indentation depends of a cursor position. - Drag and Drop Timeline: ------------------------------------------- Timeline { repeatCount: Timeline.INDEFINITE keyFrames : [ KeyFrame { time : 1s canSkip : true } ] } ------------------------------------------- - Drag and drop Action under 'canSkip' attribute The result is: ------------------------------------------- KeyFrame { time : 1s canSkip : true action: function() { // <-- wrong indentation } ------------------------------------------- If I drag and drop the action at the beginning of line the indentation is correct
yes, because we have no context-aware reformatting at the moment
verified