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 6.9 (Build 201006101454) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.6.0_18 Runtime = Java HotSpot(TM) Client VM 16.0-b13 When typing java code containing if...else..., the 'else' is indented close to the left margin and not under the 'if'. I think this is new in 6.9. Example: Type public class Dummy { public Dummy() { if (true) { } els^ } } The caret is at ^. Type the final e of else and the word jumps to the left margin public class Dummy { public Dummy() { if (true) { } else } } Complete the structure and choose Source|Format. The code is indented 'correctly' public class Dummy { public Dummy() { if (true) { } else { } } } Reproducible always.
Should be already fixed in the current dev build. *** This bug has been marked as a duplicate of bug 188112 ***