Auto-Import
Auto-Import copied to clipboard
Feature Request: Import organisation
This is a rather huge addition to the plugin:
- manage all imports (remove not used ones)
- order them according to best practices
Hey, its something I have been looking at in all honesty. I think its a solid idea. do you fancy the challenge? I am willing to accept pull requests :)
Sure. I haven't looked at the code yet but I will look at it later today...
I also need leaving one empty line between third party imports and application imports. With reflect-metadata which has to be on top of file it's really annoying when you get the auto import on first line of file.
Is this such a complex feature? The rules for ordering are pretty simple. All external (non ".") imports, sort by module. Blank line. Then all "." imports, sorted by module.
You guys should try this https://marketplace.visualstudio.com/items?itemName=peterjuras.sort-imports