Skip to content

shalomdotnet/vsc-sort-imports

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sort-imports

Sort ES6 imports automatically. Ported from the atom-import-sort package by Renke Grunwald.

Sort Example

Features

Automatically sorts imports on save. You can disable this behavior in the settings and sort imports manually:

  1. Launch the Command Palette (Ctrl/Cmd + Shift + P);
  2. 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:

  1. Launch the Command Palette (Ctrl/Cmd + Shift + P);
  2. Enter Save file without sorting imports

Extension Settings

This extension has the following setting:

  • sortImports.onSave: enable/disable auto sorting on save (default: enabled)

Release Notes

1.1.0

  • Added 'Save without sorting imports' command

1.0.0

Initial release

Thanks

About

Sort ES6 imports automatically.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published