Bug 5824 - Code Formatter needs to be more customizable to be useful
Summary: Code Formatter needs to be more customizable to be useful
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.0 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-12 19:51 EST by Timothy Whittington CLA
Modified: 2005-01-13 09:23 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Whittington CLA 2001-11-12 19:51:45 EST
As we all know this is a religious issue and Eclipse needs
to be able to adapt to peoples bracketing/spacing styles.

Allowing fine control over the code formatting would be very
useful, especially if code formatting profiles could be exported
and loaded (associated with projects?) to support consistent style
through a project.
Perhaps even automatic reformatting on save.

It appears that this could be easily added to Eclipse as the current
formatter strips any spacing out and formats to a consistent style,
so all that should be needed is the configurability and logic to insert
spacing/newlines where required.

IDEA IntelliJ (http://www.intellij.com) is an excellent example of what 
I'm talking about.
Comment 1 Philipe Mulet CLA 2001-11-13 17:03:56 EST
After 2.0 is out, we will likely consider reworking considerably the code formatter. Deferring it until then.
Comment 2 Philipe Mulet CLA 2002-07-25 06:30:43 EDT
Resurrecting formatter issues in 2.1 stream.
Comment 3 Philipe Mulet CLA 2002-07-25 06:32:34 EDT
Clearing resolution
Comment 4 Olivier Thomann CLA 2003-01-15 13:22:34 EST
We need to clear 2.1 bug reports that won't be addressed before 2.1. The new 
implementation is still in the works. Therefore we cannot include it for 2.1. 
Not enough testing and we need to polish the preferences. This will be address 
for 2.2 as stated in the JDT/Core plan.
Comment 5 Philipe Mulet CLA 2003-06-12 06:36:02 EDT
Resurrecting for 3.0
Comment 6 Olivier Thomann CLA 2003-06-12 15:58:52 EDT
Reopen for 3.0 consideration.
Comment 7 Olivier Thomann CLA 2003-10-03 09:14:07 EDT
The new formatter has more than an hundred different options. You can customize
a lot. When the preference page will be available (between M4 and M5), let me
know if you want more customization.
Fixed and released in HEAD.