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.
Product Version = NetBeans IDE Dev (Build 200910080418) (#4925e52d6715) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc. Steps to reproduce: - Copy the code to the editor: --------------------------------------------------- var a:String = "Hello World"; function sqr(x:Number):Number { x * x } --------------------------------------------------- - Format the code The result is: --------------------------------------------------- var a : String = "Hello World"; function sqr(x : Number) : Number { x * x } --------------------------------------------------- There are blanks: - a : String - x : Number - ) : Number
It's not a bug but feature. User can change this in reformatting settings.
Could the default settings be changed to -------------------------------------- var a: String; function sqr(x: Number):Number { x * x } --------------------------------------
The old code formatter did not place a space between a variable and a colon
Будь по-твоему. :) fixed http://hg.netbeans.org/javafx/rev/5cb7728f79b2
verified in Build 200911170201