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.
Installed Netbeans 6.9 on two pc's (running XP and Vista64), and on both of them the "if" and "else" blocks do not line up (as I expect them to, anyway). Following completion of the if{} block, pressing Enter places the cursor below the previous "}", but upon completion of the word "else", netbeans seems to reformat the text so that the "else" gets moved to the second position of the line, with the immediate result looking like: if{ ... } else
*** Bug 188258 has been marked as a duplicate of this bug. ***
What language are you editing (java, php, C/C++, ...)?
(In reply to comment #2) > What language are you editing (java, php, C/C++, ...)? java only, but in the meantime I've gone back to an older version of Netbeans while the issue was being resolved
Same problem, very annoying. 100% reproduceable.
*** Bug 190840 has been marked as a duplicate of this bug. ***
*** Bug 190887 has been marked as a duplicate of this bug. ***
*** Bug 190974 has been marked as a duplicate of this bug. ***
Already fixed in the current dev build.
*** Bug 189810 has been marked as a duplicate of this bug. ***
Dusan, could you prepare patch for NB 6.9 ? I think with current number of duplicates it makes sense to do it, what do you think ?
Unfortunately, the original patch is part of a huge change and cannot be easily distilled from it. However, the following changeset should fix the problem in 6.9 as well: http://hg.netbeans.org/jet-main/rev/9d8f64af8b9a
(In reply to comment #11) > Unfortunately, the original patch is part of a huge change and cannot be easily > distilled from it. However, the following changeset should fix the problem in > 6.9 as well: > > http://hg.netbeans.org/jet-main/rev/9d8f64af8b9a Dusan, thanks a lot for your help. Petr, could you proceed with integration into releases clone ASAP, so we can really start to test it tomorrow morning ? Thanks a lot.
Patched from using jet-main (CS http://hg.netbeans.org/jet-main/rev/9d8f64af8b9a) http://hg.netbeans.org/releases/rev/f8825af2eb66
*** Bug 188090 has been marked as a duplicate of this bug. ***
*** Bug 187116 has been marked as a duplicate of this bug. ***
*** Bug 187694 has been marked as a duplicate of this bug. ***
Verified in the following build with installed 6.9 Patch 2 plugins: Product Version: NetBeans IDE 6.9 (Build 201010211515) Java: 1.6.0_12; Java HotSpot(TM) Client VM 11.2-b01 System: Windows Vista version 6.0 running on x86; Cp1250; cs_CZ (nb)
Integrated into 'main-golden', will be available in build *201010280000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/8f18410ba01c User: Dusan Balek <dbalek@netbeans.org> Log: Fixing bug with reformatting single line containing else keyword - second attempt - see issue #188112.
*** Bug 195011 has been marked as a duplicate of this bug. ***