This is the content in my user settings.json.
settings.json
"editor.codeActionsOnSave": { "source.organizeImports": true },
Like this ordering, but don't like that Visual Studio Code removes unused imports instead of graying them out.
Finally possible in 2021.
Replace source.organizeImports with source.sortImports.
source.organizeImports
source.sortImports
"editor.codeActionsOnSave": { "source.sortImports": true },
Currently this is not possible. See https://github.com/microsoft/TypeScript/issues/36085 p>
Finally possible in 2021.
Replace
source.organizeImports
withsource.sortImports
.Currently this is not possible. See https://github.com/microsoft/TypeScript/issues/36085 p>