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.
I use Allman indent style. In Settings/Editor/Formatting I set braces placement for php to "New line". But actually this option affects only on source format feature. Actual wrong indentation results: foreach($zzz as $zzzz) { | } Expected Results: foreach($zzz as $zzzz) { | } This bug occurs on all block operators such: for, foreach, if, do, while... Doesn't occur in Netbeans 6.7
I'm having the same issue too and it's really annoying! Netbeans 6.8 - Windows 7 Ultimate
well, this issue is reproducible. @peter: I guess this is a bit unpleasant because I can write something like if (true) //enter and one command as well as if (true) //enter { } is there any way to do something about this? thanks.
I think the behavior should be: When you if (true)| and press Enter on | position the result will be still if (true) | and when now press '{' then the result will be if (true) {| and now press enter the result will be if (true) { | }
yep, that's how it should be. if there would be opening bracket automatically indented it would be great.
I put the fix for this issue into the web-main. It's change 155808:a3a0f0d7676d http://hg.netbeans.org/web-main/rev/a3a0f0d7676d
verified, can be transplanted to 68patch1
The fix has been ported into the release68_fixes repository. http://hg.netbeans.org/release68_fixes/rev/9a4d517817b2
Integrated into 'main-golden', will be available in build *200912170200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/a3a0f0d7676d User: Petr Pisl <ppisl@netbeans.org> Log: issue #178542 - Wrong indentation when using new line for braces placement.
*** Bug 178739 has been marked as a duplicate of this bug. ***
verified Product Version: NetBeans IDE 6.8 (Build 201001261800) Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01
(In reply to comment #10) > verified > Product Version: NetBeans IDE 6.8 (Build 201001261800) Apparently the bug was back in version 6.9. According to bug 178210 it was really fixed in version 7.0.