eclipse-jdt / eclipse-jdt/eclipse.jdt.core

Save action "Format edited lines" no longer works properly with regard to comments

Open
#4,470 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
237
Forks
195
Avg merge
1d 12h
Merged PRs (30d)
47

Description

I used to use the "Format edited lines" save action (Preferences > Java > Editor > Save Actions) to ensure that anthing I touched is properly formatted.

This used to work well: For code it formatted really just the lines that were edited; in the case of multi-line or javadoc comments it reformatted the whole comment, which doesn't strictly match the description, but is ok for me (the resulting changes are still limited to a few lines and easily reviewable).

Now, however, making any change at all in a file causes the Save Action to reformat _all_ comments in the file, resulting in an unacceptable amount of noise in diffs and merge requests, thus rendering the feature useless to me.

I first observed this issue in Eclipse IDE for Java Developers 2025-06, it also occurs in 2025-09.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.