upleveled / system-setup

Set up a PERN development environment on Windows, macOS and Linux
28 stars 19 forks source link

Switch from JS/TS Import/Export Sorter extension to `source.sortImports` #12

Closed karlhorky closed 3 years ago

karlhorky commented 3 years ago

I think we can switch away from the extension to this configuration below:

The Sort imports Code Action for JavaScript and TypeScript sorts your imports. Unlike Organize imports however, it does not remove any unused imports.

"editor.codeActionsOnSave": {
    "source.sortImports": true
}

https://code.visualstudio.com/updates/v1_57#_sort-imports-source-action

karlhorky commented 3 years ago

The built-in sorter won't allow for the nice configurability that we get from the extension though, closing for now.