typescript.java icon indicating copy to clipboard operation
typescript.java copied to clipboard

Ctrl+Shift+O: Organize imports

Open micaelgallego opened this issue 8 years ago • 4 comments

Remove unnecessary imports and sort them

micaelgallego avatar Mar 12 '16 13:03 micaelgallego

@micaelgallego please suggest this idea to TypeScript. Thanks!

angelozerr avatar Apr 06 '16 22:04 angelozerr

Once tsserver will be extensible, we could create a plugin like https://github.com/buehler/typescript-hero

angelozerr avatar Sep 21 '16 06:09 angelozerr

See TypeScript issue https://github.com/Microsoft/TypeScript/issues/10020

angelozerr avatar Oct 26 '16 07:10 angelozerr

@micaelgallego tslint supports a rule for ordered imports. This rule also supports Quickfix.
There is also a no-unused-variable, which checks for unused imports and supports quickfix too.
So as long as there is no "Organize Imports" you could use this workaround instead.

probert94 avatar May 04 '17 15:05 probert94