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.
STR: 1) Have a method with such code: ------------------------ int a = 1; System.currentTimeMillis(); ------------------------ 2) Put the cursor to System 3) press Alt+Enter 4) Choose "Assign Return Value To New Variable" Result: ------------------------ int a = 1; long currentTimeMillis = System.currentTimeMillis(); ------------------------ IMHO, this operation should not affect blank characters at all - simply prepend the type, variable name, and = (with respect to formatting settings).
Duplicate. Other "Assign Return Value To New Variable" bugs: http://netbeans.org/bugzilla/buglist.cgi?quicksearch=Assign+Return+Value+To+New+Variable *** This bug has been marked as a duplicate of bug 150783 ***