You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"java.saveActions.organizeImports" setting doesn't work on Windows #2207
yeah, for now on my machine it can be solved like this: ignore any settings in the settings UI. And just add this in your settings.json file: "editor.codeActionsOnSave": { "source.organizeImports": true, "source.addMissingImports": true, },
Reacted by Will 保哥, Adrian Antkowiak, Bit0r, Dmitry Zavodnikov, Cloud, Andy725, Gustavo Brian, voxelmagpie, Jeremy Grifski and Florian Bütler
Activity
itayasaf1990xd commentedon Aug 17, 2022
I just wonder why almost 1 year later and this issue did not fix yet.
alx1024 commentedon Aug 17, 2022
yeah, for now on my machine it can be solved like this: ignore any settings in the settings UI. And just add this in your settings.json file:
"editor.codeActionsOnSave": { "source.organizeImports": true, "source.addMissingImports": true, },adiantek commentedon Dec 13, 2022
still unresolved
avertx commentedon Sep 19, 2023
but wait! regardless of saving, copy/paste code should carry imports from the source
having to search for this one was/is a bummer.
fbricon commentedon Feb 16, 2026
java.saveActions.organizeImportshas now been deprecated in favour of"editor.codeActionsOnSave": {"source.organizeImports": true}