Summary: | Better code format for wrapped lines | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | csccsccsc <btarling> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | RESOLVED WORKSFORME | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | ||
Version: | 2.1.1 | ||
Target Milestone: | 3.0 M9 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
csccsccsc
2004-01-21 10:25:15 EST
This should be done if you use the new formatter. This formatter is available in latest integration 3.0 builds. It can be optionally turn on in M6 and it is on by default in the latest integration build. I have a developer next to me with M6 already installed. Can you tell us how to turn this feature on as I can't see it in the preferences. I was also hoping for another formatting rule "Do not wrap condition and unbraced statement on same line" I would want this to then for relevant lines ignore the max width setting. This is so that for log4j I can save screen depth real-estate. eg. if (log.isDebugEnabled()) log.debug("This is useful logging but I want it all on one line so that it does not obfuscate the surrounding code") This breaks Sun Conventions so should not be turned on by default. Any chance of something like this? Would you prefer I put this in a seperate issue? Regards Bob. To turn it on, you simply need to select the new code formatter in the Work in progress of the Java settings. Then you apply the change and you select the code formatter preference page. Open a feature request for your last comment. I am not sure if we will have time to do it. I have other things to do than just the code formatter. This is already done. Closing as FIXED. There is another bug report for this bug. I change the resolution of this one to WORKSFORME Change resolution to WORKSFORME |