Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 509546

Summary: Incomplete code formatting in Eclipse Java
Product: [Eclipse Project] JDT Reporter: martin shultz <khjgfty4regrdhg>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 4.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug
Attachments:
Description Flags
Who is so
none
Offer
none
Comfortable padding when moving long lines none

Description martin shultz CLA 2016-12-20 14:29:32 EST
I am using a translator

It is not comfortable, do not do a complete code formatting in Eclipse Java ...

In particular, there is no transfer after long strings of some operators, for example: ".", "==", ">=", "->" and the other. I use a lot of identifiers with long names, so this is for me a very big problem!

The result is that even with all possible settings of the long lines normally tolerated, and some do not. This prevents very smoothly read the code, you often use the slider at the bottom of the page :(

It is shown in the screenshot "Who is so". On errors in the code do not pay attention.

I propose to do to a line break in the right place after all the operators.

The example in the screenshot "Offer".

Another thing that is missing when formatting code is the transfer of the long lines of code indented portion equal to indent a block of code. For example, to indent a block of code 4 spaces, and for long lines of code I have set myself the space 2 (in a pinch 1). Then when autoformatting blocks contained to 4 spaces, and wrap long lines 2 spaces. Now you can install either the absence of indentation when lines wrap, or make it like a unit that does not allow them to quickly distinguish between the length of the indentation.

In another ide I'm used to establish such a shift in the 2 characters and it really helps to quickly distinguish between the code blocks of code to wrap long lines and determine whether they are different or one long line, looking only at the left side of it. But in Eclipse have to constantly look left and right to check whether it is transferred row or block long line or multiple lines.

The example in the screenshot "Comfortable padding when moving long lines."

I suggest that at least it was possible to include these options in the settings.
Comment 1 martin shultz CLA 2016-12-20 14:30:46 EST
Created attachment 265989 [details]
Who is so
Comment 2 martin shultz CLA 2016-12-20 14:31:23 EST
Created attachment 265990 [details]
Offer
Comment 3 martin shultz CLA 2016-12-20 14:32:16 EST
Created attachment 265991 [details]
Comfortable padding when moving long lines
Comment 4 Eclipse Genie CLA 2020-02-20 14:05:04 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.