Modify

Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#1462 closed enhancement (fixed)

[PATCH] Java source code formatter style sheet

Reported by: GeoJ <geoj@…> Owned by: framm
Priority: minor Milestone:
Component: Core Version:
Keywords: Cc:

Description

This ticket should be used for developing a Java source code formatter style sheet (see "Source code formatting template?" on the mailing list).

Attachments (2)

eclipse-josm code style.xml (28.2 KB ) - added by geoj@… 16 years ago.
Proposal of a Eclipse source code formatter style sheet (created using Eclipse 3.4 alias Ganymede)
org.eclipse.jdt.core.prefs.diff (50.4 KB ) - added by jpstotz 16 years ago.

Download all attachments as: .zip

Change History (5)

by geoj@…, 16 years ago

Attachment: eclipse-josm code style.xml added

Proposal of a Eclipse source code formatter style sheet (created using Eclipse 3.4 alias Ganymede)

comment:1 by jpstotz, 16 years ago

I noticed that the file .settings\org.eclipse.jdt.core.prefs already contains settings for the code formatter - of course only the default settings.

Therefore I created a patch that integrates the josm adapted code style posted previously into the the mentioned file. As the adapted style is much more closer to the style already used and as the style has to activated by hand IMHO the patch can be safely applied.

Jan

by jpstotz, 16 years ago

comment:2 by jpstotz, 16 years ago

Summary: Java source code formatter style sheet[PATCH] Java source code formatter style sheet

comment:3 by framm, 16 years ago

Resolution: fixed
Status: newclosed

Seems good to me (I did a few spot checks and found the changes made by Ctrl-Shift-F acceptable), so I applied this patch for r981. - Remaining questions: (a) should we do a monster reformat of all code by applying this style, or just apply it whenever we touch a file anyway? and (b) what can we do for those who don't use Eclipse; is there some kind of compatible command-line formatter or so available?

I'll close the ticket, let's have the discussion on the mailing list.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain framm.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.