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.

Bug 22608 - Improve the Java code formatter
Summary: Improve the Java code formatter
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P4 blocker with 1 vote (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-18 18:44 UTC by ats37
Modified: 2007-11-05 13:39 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ats37 2002-04-18 18:44:28 UTC
The Reformat Code option in the editor (Java Indentation 
Engine) is quite limited in the formatting options it 
provides.  The following additional options would be nice 
to have:

- newline before braces for class and method definitions, 
but not for other code structures (ifs etc. within the 
methods)
- put throws (for method desclarations), extends and 
implements (for class declarations) clauses on a new line 
with a double indent.
- any of the other options jrefactory's prettyprinter 
module (http://jrefactory.sourceforge.net/cspretty.html) 
offers.
Comment 1 Svata Dedic 2002-04-19 07:40:50 UTC
The implementation lies in the Editor module
Comment 2 Svata Dedic 2002-04-19 07:41:09 UTC
The implementation lies in the Editor module
Comment 3 Marek Grummich 2002-07-22 12:10:11 UTC
Set target milestone to TBD
Comment 4 Marek Grummich 2002-07-22 12:13:14 UTC
Set target milestone to TBD
Comment 5 Roman Strobl 2004-12-06 15:53:41 UTC
Changing subcomponent to formatting.
Comment 6 bondolo 2007-09-28 21:36:22 UTC
The nb6 java formatter would seem to allow for all of these.
Comment 7 Jesse Glick 2007-10-12 16:03:45 UTC
Yes, the formatter is much more powerful in NB 6.

BTW editor folks - there are *a lot* of open issues, including DEFECTs, filed in the editor relating somehow to
formatting which are obsolete and need to be reevaluated for NB 6. Time to do an Issuezilla sweep.