Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Code formatter - line wrapping behavior(Line wrapping behavior seems to be different in different eclipse versions)
Code formatter - line wrapping behavior [message #1793520] Thu, 09 August 2018 13:09
Ulf Dittrich is currently offline Ulf DittrichFriend
Messages: 3
Registered: July 2018
Junior Member
After migrating my Java dev-environment from Kepler Service Release 2 to
Oxygen.3 Release (4.7.3) I noticed, that the line wrapping behaviour of the
Java Code Formatter is different now although the same settings are used.

An example:

- Default settings of "Eclipse [built-in]"
- Fuction Calls -> Argutments
- line width: 40

Kepler Service Release 2:

class Example {
	void foo() {
				nested(200, 300, 400,
						500, 600, 700,
						800, 900));

Oxygen.3 Release (4.7.3):

class Example {
	void foo() {,
				nested(200, 300, 400,
						500, 600, 700,
						800, 900));

This causes a lot of trouble, because after making a small change on an existig
class and formatting the code there are a lot of changes just because of differently
wrapped lines. So you have to look really hard in structure compare to find the
"real" changes.

I played around with the settings a little, but did not succeed.
Is there a possibility to make the Java Code Formatter in Oxygen.3 work the "old" way?

Thanks in advance for your help!

Best regards
Previous Topic:"Failed to find a Main Class"
Next Topic:Eclipse console No Output
Goto Forum:

Current Time: Sat Nov 17 14:47:14 GMT 2018

Powered by FUDForum. Page generated in 0.02016 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top