Auto-Import icon indicating copy to clipboard operation
Auto-Import copied to clipboard

Feature Request: Import organisation

Open Maltram opened this issue 9 years ago • 5 comments

This is a rather huge addition to the plugin:

  • manage all imports (remove not used ones)
  • order them according to best practices

Maltram avatar Oct 13 '16 09:10 Maltram

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 :)

soates avatar Oct 17 '16 06:10 soates

Sure. I haven't looked at the code yet but I will look at it later today...

Maltram avatar Oct 17 '16 06:10 Maltram

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.

MichalLytek avatar Oct 18 '16 16:10 MichalLytek

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.

kylecordes avatar Jan 08 '17 00:01 kylecordes

You guys should try this https://marketplace.visualstudio.com/items?itemName=peterjuras.sort-imports

leocaseiro avatar May 16 '17 07:05 leocaseiro