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.
The Language: PHP > Category: Braces > "New line indented" is supposed to format like this (as shown in the preview code on the right): whatever <indent>{ <indent>... <indent>} But in practice it acts like this: whatever <indent>[the cursor correctly starts here] Then you hit "{" and Enter and it becomes like this: whatever { <indent>[cursor here] }
reproduced Product Version: NetBeans IDE Dev (Build 100429-c5711a1eb6ab) Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01 type while (true) | //enter while (true) | //correct while (true) {| // { bracket jumps to the first column of the row while (true) { | } if you invoke formatting you will get correct indentation while (true) { | } @reporter: correct me if I didn't really get what you meant.
Yes, that was exactly what I meant, and yes, invoking formatting will correct it afterwards. Thanks!
Integrated into 'main-golden', will be available in build *201005010200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/ User: Log:
I have fixed this on Friday.
indentation is still not ok. Product Version: NetBeans IDE Dev (Build 100503-2daaf2ae8a4f) Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01 <? while (true) { //enter result while (true) { //enter } expected: while (true) { //enter }
The problem is still there.
Still valid. Product Version: NetBeans IDE Dev (Build 20120502-3fa1de339d64) Java: 1.6.0_26; Java HotSpot(TM) Client VM 20.1-b02 System: Linux version 3.0.0-17-generic-pae running on i386; UTF-8; cs_CZ (nb) User directory: /home/warden/userdir Cache directory: /home/warden/userdir/var/cache
Fixed in web-main #56e38483398c
Integrated into 'main-golden', will be available in build *201211170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/56e38483398c User: Ondrej Brejla <obrejla@netbeans.org> Log: #185001 - "New Line Indented" not working