Summary: | Java code formatter wraps line too much. | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Adalbert Homa <adalbert.homa> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.0 | ||
Target Milestone: | 3.0 M4 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Adalbert Homa
2003-10-01 16:13:45 EDT
The new formatter can perform compact line split. String s = "alfa" + "beta" + "gamma" + "delta" + "alfa" + "beta" + "alfa" + "beta"; In what release ? This format is a little bit better, but why is there an new line after '=' ? Why are we not following Sun's conventions ? I found them quite clear. Here is the link for line wrapping: http://java.sun.com/docs/codeconv/html/CodeConventions.doc3.html#248 The new formatter is not activated yet. The result for your input will be: String s = "alfa" + "beta" + "gamma" + "delta" + "alfa" + "beta" + "alfa" + "beta"; You will be able to change this formatting according to preferences. It is not sure that the preferences wizard will be available when the new formatter is activated. This is addressed in the new formatter. Fixed and released in HEAD. Regression test added. I am checking this bug in I20031008, and does not appear fixed. Did you activate the new formatter? By default the new formatter is not activated. You have to go to: Preferences>Java>Work in progress and check the last checkbox. Let me know if it works as expected. Be careful when you change the formatter options. You might end up with the bug 44425. The new formatter is wrapping lines much better. I think we can close this bug. Verified. |