#1462 closed enhancement (fixed)
[PATCH] Java source code formatter style sheet
Reported by: | 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)
Change History (5)
Changed 15 years ago by
Attachment: | eclipse-josm code style.xml added |
---|
comment:1 Changed 15 years ago by
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
Changed 15 years ago by
Attachment: | org.eclipse.jdt.core.prefs.diff added |
---|
comment:2 Changed 15 years ago by
Summary: | Java source code formatter style sheet → [PATCH] Java source code formatter style sheet |
---|
comment:3 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
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.
Proposal of a Eclipse source code formatter style sheet (created using Eclipse 3.4 alias Ganymede)