[JAVA] Prevent unused imports from being deleted when saving in Eclipse
It’s pretty fine and doesn’t matter. After using Eclipse for a long time and pasting the import statement and saving it once with the shortcut key, the imported statement added every time will be deleted without permission, so a memo when responding by changing the setting.
- Version: 2019-12 (4.14.0)
Open “Window”-> “Settings” and select “Java”-> “Editor”-> “Save Action” in the tree on the left.
A screen like that is displayed.
Here, uncheck the “Organize Import” checkbox displayed in “Save Actions” on the right and click the “Apply and Close” button.
I don’t know what the “import organization” is doing, but for the time being, this has avoided the phenomenon.
Read more here: Source link