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]Reformat Code should work better. | ||
---|---|---|---|
Product: | editor | Reporter: | Jan Becicka <jbecicka> |
Component: | Formatting & Indentation | Assignee: | Dusan Balek <dbalek> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | bobtarling, dkonecny, issues |
Priority: | P4 | ||
Version: | 3.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
Jan Becicka
2000-04-20 23:54:20 UTC
Priority is changed to P4 (normal). Only changed version to Development. We would need to have an additional flag for whether the user wants either { method() or { method(); Until that the indent engine should keep the "{ method()" on the same line if they were originally on the same line and vice versa. The first bug here is that the { is not put onto the next line. I assume the 'Add newline before brace' was turned on. The second bug is that "{method()" be indented like "{ method()" if indent 4 is used. It works slightly better now - it doesn't do backindent: Input: someMethod1(); someMethod2();{someMethod3(); someMethod4();} Output is: someMethod1(); someMethod2();{someMethod3(); someMethod4();} If add newline before brace is turned on, it indents: Input: someMethod1(); someMethod2();{someMethod3(); someMethod4();} Output is: someMethod1(); someMethod2(); {someMethod3(); someMethod4();} Version: 'Dev' -> 3.2 I'm moving this issue back to the Dev and changing the type to ENHANCEMENT. It will be implemented in next version. Target milestone -> 3.3 Re-assigning issues back to the bugs@editor.netbeans.org Changing the state of the issue to ASSIGNED, because it was cover in Requirements document at http://editor.netbeans.org/doc/Requirements.html Target milestone -> 3.3.1. Set target milestone to TBD Set target milestone to TBD Changing subcomponent to formatting. This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss |