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.
Summary: | [indentation] wrong indentation of brackets when set "on new line" | ||
---|---|---|---|
Product: | php | Reporter: | dzero |
Component: | Formatting & Indentation | Assignee: | Petr Pisl <ppisl> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | maverick530 |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
dzero
2009-12-06 21:11:52 UTC
code does not format properly while typing conditional statements not indenting properly when i type for() { } it indents my bracket as shown if i format the code using format it looks correct for() { } @reporter: I assume you set the braces indentation to new line after statement. reproduced in Product Version: NetBeans IDE 6.8 RC2 (Build 091203-93714f910393) 1. type if ($a == 50) | 2. press enter if ($a == 50) | 3. write bracket and press enter if ($a == 50) { | } case with for is reproducible only if you don't provide arguments, e.g. 'for ()' is indented incorrectly but 'for ($i=10;$i<40;$i++)' is indented correctly. @ppisl: do you agree to have this in 68patch1? Thanks. yes, i agree This is still an issue for 6.9.1. I can't stand how my formatting settings are set correctly, but when I type, it auto-indents my curley brace { after returning from my if statements, for example. The behavior in NB 7.0 is different and I think that it's right now. If you don't agree, please reopen. Thanks for fixing the issue. I'm also posting to report that bug 178542 and 187727 should probably have been marked as duplicates of this one. I know they're all closed but updating their status would slightly clean up the hatch. (In reply to comment #6) > 187727 Sorry I meant bug 187727. |