Organize imports on save
When you save, the list of other files your file uses gets sorted, and any it no longer uses are removed.
When you would want it
Import lists grow messy on their own and nobody ever tidies them on purpose.
Where to find it
- All Features → Organize imports on save
- Settings → adcode.formatting.organizeImportsOnSave
How to use it, step by step
Off by default, because deleting a line you did not ask to delete deserves to be a choice.
- Turn it on and it happens on every save.
Why this beats the usual way
Elsewhere, consistent formatting is a ritual: pick a formatter, install it, write a config, wire it to save. ADCode ends the ritual - a built-in formatter, on by default, that defers to your language server when one knows better and never mangles a file it cannot handle.
Find it in Universal Search
Organize imports on save · Formatting