Bug 258640 - [clean up] Format on Save without joining lines
Summary: [clean up] Format on Save without joining lines
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-12 06:42 EST by Markus Keller CLA
Modified: 2008-12-15 04:17 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2008-12-12 06:42:48 EST
I20081211-1908

The 'Never join lines' option from bug 198074 is fantastic and makes me want to start using Format on Save.

There's just one caveat: I don't want Format on Save to touch my line breaks, but when I edit some code and then manually select and format it, the formatter should join lines. But I can just have one formatter profile per project.

I think this is the only formatter option for which it makes sense to enable it in the formatter profile for manual formatting but disable it for save actions.

Could we add a 'Never join lines' checkbox to the Save Actions preference page?
Comment 1 Dani Megert CLA 2008-12-15 04:17:08 EST
I see the two cases but am not sure it is really tied to save vs. manual format.