Sort ES6 imports automatically. Ported from the atom-import-sort package by Renke Grunwald.
Automatically sorts imports on save. You can disable this behavior in the settings and sort imports manually:
- Launch the Command Palette (
Ctrl/Cmd + Shift + P
); - Enter Sort imports
You can also save the document without saving imports. This could become handy when you have auto saving enabled, but don't want to sort the imports in a particular file:
- Launch the Command Palette (
Ctrl/Cmd + Shift + P
); - Enter Save file without sorting imports
This extension has the following setting:
sortImports.onSave
: enable/disable auto sorting on save (default: enabled)
- Added 'Save without sorting imports' command
Initial release
- Special thanks to Renke Grunwald for creating the import-sort module!
- Icon made by Catalin Fertu from www.flaticon.com