Bug 201022 - [formatter] Option to Ignore Line Length in Code Formatter
Summary: [formatter] Option to Ignore Line Length in Code Formatter
Status: VERIFIED DUPLICATE of bug 198074
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: 3.5 M4   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-23 23:06 EDT by Dan Forward CLA
Modified: 2008-12-09 14:04 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 Dan Forward CLA 2007-08-23 23:06:29 EDT
It would be nice to have an option to tell the code formatter in Eclipse to ignore line length. In other words, if a line is broken in two, apply the rules for indenting, etc., but never break or combine lines. For the most part, I get what I want by setting my max line length to 800 characters, but in one class, I have several strings with manual wrapping that end up being placed on one line.

Example:

    String sQuery =
        "select * " +
        "from person p, address a " +
        "where p.person_id = a.person_id " +
        "and p.person_id = ?";

I do not want this to become

    String sQuery = "select * " + "from person p, address a " + "where p.person_id = a.person_id " + "and p.person_id = ?"

Thank you!!
Comment 1 Frederic Fusier CLA 2008-07-08 07:41:25 EDT

*** This bug has been marked as a duplicate of bug 198074 ***
Comment 2 Frederic Fusier CLA 2008-12-03 07:21:16 EST
Reopen to assign...
Comment 3 Frederic Fusier CLA 2008-12-03 07:21:45 EST

*** This bug has been marked as a duplicate of bug 198074 ***
Comment 4 Kent Johnson CLA 2008-12-09 14:04:00 EST
Verified for 3.5M4 using I20081209-0100