Closed
Description
Suggestion
I was originally using the organizeImports
in my "editor.codeActionsOnSave"
block on VSCode. The issue with this feature is it also does the sorting which we don't want.
It's currently not possible to switch the sorting off without losing the "remove unused imports".
According to VSCode documentation "addMissingImports" is offered as an "on save" option, but not "removeUnusedImports".
⭐ Suggestion
As some projects already use tools which handle ordering it would be nice to just add/remove imports without changing the order.
Then have a separate command which handles ordering.
💻 Use Cases
My team are happy with the ordering of imports and don't want changes. However by keeping the ordering I lose the ability to remove unused imports.
Example
"editor.codeActionsOnSave": {
"source.organizeImports": false,
"source.fixAll": true,
},