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

Enable "organize imports on save"

Open
#2,579 8 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 would like to enable organize imports on save and would like to get feedback from jdt.core commiters.

Known benefit: i don't have to manually remove no longer used imports.
Known downslde: The first commit on each file will have a longer - unrelated - patch size.

optional workaround: reorganize all imports once for all files.
history: at some point of time the sort order for imports was changed.

---
If you start a discussion and mention me, I will add more details there. Hint: if the change of strategy is done well, I'm not strictly against it.

_Originally posted by @stephan-herrmann in https://github.com/eclipse-jdt/eclipse.jdt.core/pull/1700#discussion_r1641778187_

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.